![]() | |
Triangulator Properties |
The Triangulator type exposes the following members.
Name | Description | |
---|---|---|
![]() | FailedToFindPolygonEars | FailedToFindPolygonEars is set to true, when this triangulator fails to find ears in the polygon and because of this it needs to use the triangle fan algorithm as a fallback. This may produce invalid triangulation with intersecting triangles. In this case you may want try to reverse the order of positions, or set OrderHolesByXPosition to false and then add holes in a different order. |
![]() | IsClockwise | Gets a boolean that specifies if the specified points are oriented in clockwise direction. This property can be used only then Triangulator is created by providing a single list of point and not multiple polygons. |
![]() | IsClosed | Gets a boolean that specifies if the specified points define a close path. This property can be used only then Triangulator is created by providing a single list of point and not multiple polygons. |
![]() | IsPolygonConvex | Gets a boolean that specifies if the specified points define a convex polygon. In convex polygon every internal angle is less than or equal to 180 degrees and every line segment between two vertices remains inside or on the boundary of the polygon. For example square is convex, but star is not (it is concave). This property can be used only then Triangulator is created by providing a single list of point and not multiple polygons. |
![]() | IsPolygonPositionsOrderReversed | Gets true when the positions order was reversed because the outer polygon was not defined in clockwise order. |
![]() | IsYAxisUp | Gets Boolean that specifies if Y axis in 2D positions is pointing up (true by default). This affects the value of IsClockwise property. The value of this property is set with constructor. |
![]() | OrderHolesByXPosition | When set to true, the holes are ordered by their X position (left to right) before triangulation. This usually produces better triangulation results, but if you want process the holes in the same order as added, then set this property to false. |
![]() | PolygonArea | Gets a float that specifies the area defined by the specified points. This property can be used only then Triangulator is created by providing a single list of point and not multiple polygons. |