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

NameTypeAccessDescription
EdgesIList<int>ReadGets the collection of edge indices in the mesh
PolygonCountintReadGets the total number of polygons in the mesh
PolygonsIList<int[]>ReadGets the list of polygons, each represented by an array of vertex indices

Methods

SignatureDescription
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