在网格中创建多边形

在网格中创建多边形

Aspose.3D for Python via .NET 允许在网格中创建多边形。为了使用该功能,API 提供了 Mesh 类的 create_polygon 方法。使用 create_polygon 方法,您可以创建一个优化的 三角形四边形 多边形,而无需分配额外的内存。下面的代码段演示如何使用此功能。

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)