FromMesh

TriMesh.FromMesh method (1 of 2)

Create a TriMesh from given mesh object with given vertex layout.

public static TriMesh FromMesh(VertexDeclaration declaration, Mesh mesh)
Parameter Type Description
declaration VertexDeclaration
mesh Mesh

See Also


TriMesh.FromMesh method (2 of 2)

Create a TriMesh from given mesh object, the vertex declaration are based on the input mesh’s structure.

public static TriMesh FromMesh(Mesh mesh, bool useFloat = true)
Parameter Type Description
mesh Mesh
useFloat Boolean Use float type instead of double type for each vertex element component.

Return Value

The TriMesh generated from given Mesh

See Also