Table of Contents

Class Triangulate

Namespace
Alis.Core.Physic.Common.Decomposition
Assembly
Alis.dll

The triangulate class

public static class Triangulate

Inheritance

Inherited Members

Methods

ConvexPartition(Vertices, TriangulationAlgorithm, bool, float, bool)

public static List<Vertices> ConvexPartition(Vertices vertices, TriangulationAlgorithm algorithm, bool discardAndFixInvalid = true, float tolerance = 0.001, bool skipSanityChecks = false)

Parameters

vertices Vertices
algorithm TriangulationAlgorithm
discardAndFixInvalid bool
tolerance float
skipSanityChecks bool

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.

Returns

List<Vertices>

ValidatePolygon(Vertices)

Describes whether validate polygon

private static bool ValidatePolygon(Vertices polygon)

Parameters

polygon Vertices

The polygon

Returns

bool

The bool