Click or drag to resize
Ab4d.SharpEngine logo

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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public 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
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.Triangulator.Triangulate(System.Collections.Generic.List{System.Numerics.Vector2}@,System.Collections.Generic.List{System.Int32}@)"]

See Also