triangulate method

triangulate

Return triangulated mesh

Returns

Current mesh if current mesh is already triangulated, otherwise a new triangulated mesh will be calculated and returned

def triangulate(self):
    ...

Example

The following code shows how to triangulate a mesh:

from aspose.threed.entities import Plane

# The plane mesh has only one polygon with 4 control points
mesh = Plane().to_mesh()
# After triangulated, the new mesh's rectangle will become 2 triangles.
triangulated = mesh.triangulate()

See Also