Triangulate
Declaration
public static class tainicom.Aether.Physics2D.Common.Decomposition.Triangulate
Methods
ConvexPartition static
List<Vertices> ConvexPartition(Vertices vertices, TriangulationAlgorithm algorithm, bool discardAndFixInvalid = true, float tolerance = 0.001, bool skipSanityChecks = false)
Parameters:
| Name | Type | Description |
|---|---|---|
vertices |
tainicom.Aether.Physics2D.Common.Vertices |
|
algorithm |
tainicom.Aether.Physics2D.Common.Decomposition.TriangulationAlgorithm |
|
discardAndFixInvalid |
System.Boolean = true |
|
tolerance |
System.Single = 0.001 |
|
skipSanityChecks |
System.Boolean = false |
Set this to true to skip sanity checks in the engine. This will speed up the tools by removing the overhead of the checks, but you will need to handle checks yourself where it is needed. |