 |
TriangulatorTriangulate(ListVector2, ListInt32) Method |
Triangulate method triangulates the polygons that were specified in the constructor and holes that were added by the
AddHole(Vector2) method.
It sets the triangulated positions (the outer polygons and holes are connected into a single polygon) and triangle indices that can be used to create a 3D mesh.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic void Triangulate(
out List<Vector2> positions,
out List<int> triangleIndices
)
Parameters
- positions ListVector2
- list of triangulated positions (the outer polygons and holes are connected into a single polygon)
- triangleIndices ListInt32
- list of triangle indices used to create a 3D mesh
See Also