Create Polygon In Mesh

Create Polygon In Mesh

Aspose.3D for Python via .NET allows creating a polygon in a mesh. In order to use the functionality, the API offers create_polygon method of Mesh class. Using create_polygon method you can create an optimized Triangle or Quad polygon without allocating extra memory. The following code snippet shows how to use this functionality. 

from aspose.threed.entities import Mesh

#  For complete examples and data files, please go to https:# github.com/aspose-3d/Aspose.3D-for-.NET
mesh = Mesh()
mesh.create_polygon([0, 1, 2 ])
mesh.create_polygon(0, 1, 2)