Click or drag to resize
AB4D logo

Triangulator Methods

The Triangulator type exposes the following members.

Methods
 NameDescription
Public methodAddHole AddHole method can be used when Triangulator was created with a single polygon. It adds the specified PointCollection as a hole in the original polygon. The orientation of positions (clockwise or anti-clockwise) in the hole must be different than the orientation of positions in the outer polygon. If the orientations are the same, then this methods reverses the order of positions in the hole (in this case false is returned). To get triangulated positions and triangle indices call Triangulate(PointCollection, ListInt32) method.
Public methodCreateTriangleIndices CreateTriangleIndices method triangulates the specified points and creates a list of triangle indices that define the polygon.
Public methodGetPositions Returns the positions that are used by this polygon.
Public methodStatic memberProject3DPositionTo2D(IListPoint3D) Returns a List of 2D points that are created with projecting the 3D positions onto the xy, xz or yz plane (removing one of the coordinates). The plane is determined with checking the normal of the first triangle and determining which component of the normal vector is the biggest (this coordinate is removing). This requires that the positions lie on the same plane. Input positions must not be null or have less that 3 elements.
Public methodStatic memberProject3DPositionTo2D(IListPoint3D, IListInt32) Returns a List of 2D points that are created with projecting the 3D positions onto the xy, xz or yz plane (removing one of the coordinates). The plane is determined with checking the normal of the first triangle and determining which component of the normal vector is the biggest (this coordinate is removing). This requires that the positions lie on the same plane. Input positions and polygonIndices must not be null or have less that 3 elements.
Public methodStatic memberTriangulate(IListPoint) Triangulate method triangulates the specified points and creates a list of triangle indices that define the polygon.
Public methodTriangulate(PointCollection, ListInt32) Triangulate method triangulates the polygons and returns positions and triangle indices that can be used to create a 3D mesh.
Public methodStatic memberTriangulate(IListPoint, PointCollection, ListInt32) Triangulate method triangulates the polygons and returns positions and triangle indices that can be used to create a 3D mesh.
Top
See Also