Mesh
Overview
Mesh is a class in Aspose.3D FOSS for .NET.
Inherits from: Geometry, INamedObject, IEnumerable<int[]>.
A mesh is made of many n-sided polygons.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Edges | IList<int> | Read | Gets the collection of edge indices in the mesh |
PolygonCount | int | Read | Gets the total number of polygons in the mesh |
Polygons | IList<int[]> | Read | Gets the list of polygons, each represented by an array of vertex indices |
Methods
| Signature | Description |
|---|---|
Mesh() | |
Mesh(name: string) | |
GetPolygonSize(index: int) | Gets the vertex count of the specified polygon. |
GetEnumerator() | Gets the enumerator for each inner polygons. |
CreatePolygon(indices: int[]) | Create a polygon with specified indices |
CreatePolygon(v1: int, v2: int, v3: int, v4: int) | Create a polygon with specified indices |
CreatePolygon(v1: int, v2: int, v3: int) | Create a polygon with specified indices |
ToMesh() | Gets the Mesh instance from current entity. |
IsManifold() | Check if current mesh is a manifold mesh. This function will not cache the manifold calculation result. |
Optimize(vertexElements: bool) | Optimize the mesh’s memory usage by eliminating duplicated control points |
Optimize(vertexElements: bool, toleranceControlPoint: float, toleranceNormal: float, toleranceUV: float) | Optimize the mesh’s memory usage by eliminating duplicated control points |
Triangulate() | Return triangulated mesh |
GetBoundingBox() | Gets the bounding box of current entity in its object space coordinate system. |
GetEntityRendererKey() | Gets the key of the entity renderer registered in the renderer |
DoBoolean(op: BooleanOperation, a: Mesh, transformA: Matrix4?, b: Mesh, transformB: Matrix4?) | Not implemented in the FOSS edition — throws at runtime. Perform boolean operation between two meshes |