Function TileHandler.DelaunayRefinement
DelaunayRefinement
(UnsafeSpan<Int3> verts, UnsafeSpan<int> tris, UnsafeSpan<int> tags, bool delaunay, bool colinear)
Refine a mesh using delaunay refinement.
Private
Static
int DelaunayRefinement (
verts | ||
UnsafeSpan<int> | tris | |
UnsafeSpan<int> | tags | |
bool | delaunay | |
bool | colinear |
Refine a mesh using delaunay refinement.
Loops through all pairs of neighbouring triangles and check if it would be better to flip the diagonal joining them using the delaunay criteria.
Does not require triangles to be clockwise, triangles will be checked for if they are clockwise and made clockwise if not. The resulting mesh will have all triangles clockwise.