{"repo":"oberbichler/Cutear","free":true,"listed":false,"github":"https://github.com/oberbichler/Cutear","clone":"git clone https://github.com/oberbichler/Cutear.git","description":"C# port of the Mapbox Earcut polygon triangulation library for .NET Standard 2.0/2.1 and .NET 10","language":"C#","stars":55,"topics":["csharp","dotnet","earcut","geometry","mapbox","netstandard","performance","polygon","tessellation","triangulation"],"license":"ISC","category":"game-templates","readme_excerpt":"Cutear A high-performance, zero-allocation C# port of the Mapbox Earcut polygon triangulation library, targeting .NET Standard 2.0, .NET Standard 2.1, and .NET 10.0. Features - Fast & Robust Triangulation : Handles 2D/3D polygons with nested holes, touch-points, and self-intersections. - Zero Heap Allocations : Uses thread-local pooling ( [ThreadStatic] ) to guarantee 0 bytes of internal memory allocation during triangulation. - Direct Memory Spans : Native support for ReadOnlySpan and ReadOnlySpan to eliminate copy and interface overhead. - 100% Mapbox Parity : Aligned with the latest bugfixes and corrections from Mapbox Earcut v2.2.4+. - No Dependencies : Self-contained with absolutely zero external package dependencies. - Highly Compatible : Targets .NET Standard 2.0 , .NET Standard 2.1 , and .NET 10.0 (ideal for Unity, Mono, and modern .NET). --- Quick Start Add the Cutear NuGet package to your project: --- Usage Example Basic 2D Triangulation High-Performance Span Overload 3D Triangulation (Ignoring Z-Coordinate) Supports multi-dimensional arrays (such as 3D vertices with X, Y, Z coordinates) by projecting them onto the 2D plane (X, Y) during triangulation. Simply specify dim: 3 : GeoJSON / Multi-Dimensional Winding Object-Oriented / Generic Polygon Triangulation For 3D polygons, simply use 3D Point constructors and pass dim: 3 : --- Performance & Benchmarks Triangulation of three representative datasets on macOS (Apple M1 Pro, .NET 10) : 1. Execution Speed API Method Bu","default_branch":null,"files":null,"tree":[],"storefront":"/r/oberbichler","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oberbichler/Cutear/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}