Class SimpleCombiner
- Assembly
- Alis.dll
Combines a list of triangles into a list of convex polygons. Starts with a seed triangle, keep adding triangles to it until you can't add any more without making the polygon non-convex.
public static class SimpleCombinerInheritance
Inherited Members
Methods
AddTriangle(Vertices, Vertices)
Adds the triangle using the specified t
private static Vertices AddTriangle(Vertices t, Vertices vertices)Parameters
Returns
- Vertices
-
The result
PolygonizeTriangles(List<Vertices>, int, float)
Combine a list of triangles into a list of convex polygons. Note: This only works on triangles.
public static List<Vertices> PolygonizeTriangles(List<Vertices> triangles, int maxPolys = 2147483647, float tolerance = 0.001)Parameters
trianglesList<Vertices>-
The triangles.
maxPolysint-
The maximun number of polygons to return.
tolerancefloat-
The tolerance