Skip to content

Convert CDT.Core to deterministic integer arithmetic for Unity compatibility#17

Closed
PeterOlsted wants to merge 1 commit intoMichaCo:mainfrom
PeterOlsted:feature/deterministic-integer-predicates
Closed

Convert CDT.Core to deterministic integer arithmetic for Unity compatibility#17
PeterOlsted wants to merge 1 commit intoMichaCo:mainfrom
PeterOlsted:feature/deterministic-integer-predicates

Conversation

@PeterOlsted
Copy link
Copy Markdown

@PeterOlsted PeterOlsted commented Apr 5, 2026

Opened against wrong repo by mistake

Replaces all floating-point predicates and generic types with exact integer arithmetic. Adds Int128 polyfill (net5.0/Unity), rewrites Int256 to avoid UInt128 via 32-bit schoolbook multiplication, adds PredicatesInt (Orient2d, InCircle, IntersectionPosition) with Int256 intermediates, concrete integer KdTree, V2i/Box2i types, and removes PredicatesAdaptive/PredicatesExact. Triangulation becomes non-generic Triangulation operating on V2i. Targets net5.0;net6.0;net8.0;net10.0 for Unity package compatibility.

@PeterOlsted PeterOlsted changed the title Convert CDT.Core to deterministic integer arithmetic for Unity compat… Convert CDT.Core to deterministic integer arithmetic for Unity compatibility Apr 5, 2026
…ibility

Replaces all floating-point predicates and generic types with exact integer
arithmetic. Adds Int128 polyfill (net5.0/Unity), rewrites Int256 to avoid
UInt128 via 32-bit schoolbook multiplication, adds PredicatesInt (Orient2d,
InCircle, IntersectionPosition) with Int256 intermediates, concrete integer
KdTree, V2i/Box2i types, and removes PredicatesAdaptive/PredicatesExact.
Triangulation<T> becomes non-generic Triangulation operating on V2i.
Targets net5.0;net6.0;net8.0;net10.0 for Unity package compatibility.

Updates Benchmarks and Viz to the new API. Fixes CI to install .NET 6 and
use a directory-based Coverlet output with glob pattern for ReportGenerator
to handle multi-TFM coverage files correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@PeterOlsted PeterOlsted force-pushed the feature/deterministic-integer-predicates branch from 0128833 to 471fb9b Compare April 5, 2026 10:09
@PeterOlsted PeterOlsted closed this Apr 5, 2026
@PeterOlsted PeterOlsted deleted the feature/deterministic-integer-predicates branch April 5, 2026 10:14
@PeterOlsted PeterOlsted restored the feature/deterministic-integer-predicates branch April 5, 2026 10:24
@PeterOlsted PeterOlsted deleted the feature/deterministic-integer-predicates branch April 6, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant