Class MeshUtils
Utility for working with meshes.
Inheritance
System.Object
MeshUtils
Assembly: Sylves.dll
Syntax
public static class MeshUtils : Object
Methods
GetFaces(MeshData, Boolean)
Returns the indices of the faces of meshData.
Declaration
public static IEnumerable<MeshUtils.Face> GetFaces(MeshData meshData, bool invertWinding = false)
Parameters
Type |
Name |
Description |
MeshData |
meshData |
|
System.Boolean |
invertWinding |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<MeshUtils.Face> |
|
GetFaces(MeshData, Int32, Boolean)
Returns the indices of the faces of a submesh of meshData.
Declaration
public static IEnumerable<MeshUtils.Face> GetFaces(MeshData meshData, int subMesh, bool invertWinding = false)
Parameters
Type |
Name |
Description |
MeshData |
meshData |
|
System.Int32 |
subMesh |
|
System.Boolean |
invertWinding |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<MeshUtils.Face> |
|
ToMesh(IGrid)
Declaration
public static MeshData ToMesh(IGrid grid)
Parameters
Type |
Name |
Description |
IGrid |
grid |
|
Returns