Class MeshExtensions
Inheritance
System.Object
MeshExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PiXYZ.Utils
Assembly: cs.temp.dll.dll
Syntax
public static class MeshExtensions
Methods
GetPolycount(Mesh)
Returns the polycount of a given mesh. Only counts triangles.
Declaration
public static int GetPolycount(this Mesh mesh)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh |
Returns
Type | Description |
---|---|
System.Int32 |
GetSubmesh(Mesh, Int32)
Extracts a submesh from a mesh to create a new mesh. The source mesh is untouched.
Declaration
public static FloatingMesh GetSubmesh(this Mesh aMesh, int aSubMeshIndex)
Parameters
Type | Name | Description |
---|---|---|
Mesh | aMesh | |
System.Int32 | aSubMeshIndex |
Returns
Type | Description |
---|---|
FloatingMesh |
GetVerticesCount(Mesh, Int32)
Returns the number of vertices in a submesh.
Declaration
public static uint GetVerticesCount(this Mesh mesh, int submesh)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | |
System.Int32 | submesh |
Returns
Type | Description |
---|---|
System.UInt32 |