Class MeshDataOperations
Inheritance
System.Object
MeshDataOperations
Assembly: Sylves.dll
Syntax
public static class MeshDataOperations : Object
Fields
DefaultTolerance
Tolerance used for operations like Weld and EdgeStore.
Declaration
public const float DefaultTolerance = 1E-06F
Field Value
Type |
Description |
System.Single |
|
Methods
Concat(IEnumerable<MeshData>, out List<Int32[]>)
Declaration
public static MeshData Concat(IEnumerable<MeshData> mds, out List<int[]> indexMaps)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<MeshData> |
mds |
|
System.Collections.Generic.List<System.Int32[]> |
indexMaps |
|
Returns
FaceFilter(MeshData, Func<MeshUtils.Face, Int32, Boolean>)
Declaration
public static MeshData FaceFilter(this MeshData md, Func<MeshUtils.Face, int, bool> filterFunc)
Parameters
Returns
FaceRelax(MeshData, Int32)
Declaration
public static MeshData FaceRelax(this MeshData md, int iterations = 3)
Parameters
Type |
Name |
Description |
MeshData |
md |
|
System.Int32 |
iterations |
|
Returns
MaxRandomPairing(MeshData, Func<Double>)
Randomly picks pairs of adjacent faces in the mesh, and merges them into one larger face.
Always finds a maximal possible set of pairs via the "augmenting path" algorithm.
Declaration
public static MeshData MaxRandomPairing(this MeshData md, Func<double> randomDouble = null)
Parameters
Type |
Name |
Description |
MeshData |
md |
|
System.Func<System.Double> |
randomDouble |
|
Returns
RandomPairing(MeshData, Func<Double>)
Randomly picks pairs of adjacent faces in the mesh, and merges them into one larger face.
Declaration
public static MeshData RandomPairing(this MeshData md, Func<double> randomDouble = null)
Parameters
Type |
Name |
Description |
MeshData |
md |
|
System.Func<System.Double> |
randomDouble |
|
Returns
Relax(MeshData, Int32)
Declaration
public static MeshData Relax(this MeshData md, int iterations = 3)
Parameters
Type |
Name |
Description |
MeshData |
md |
|
System.Int32 |
iterations |
|
Returns
Weld(MeshData, out Int32[], Single)
Merges all vertices that are within a given distance of each other
Declaration
public static MeshData Weld(this MeshData md, out int[] indexMap, float tolerance = 1E-06F)
Parameters
Type |
Name |
Description |
MeshData |
md |
|
System.Int32[] |
indexMap |
|
System.Single |
tolerance |
|
Returns
Weld(MeshData, Single)
Merges all vertices that are within a given distance of each other
Declaration
public static MeshData Weld(this MeshData md, float tolerance = 1E-06F)
Parameters
Type |
Name |
Description |
MeshData |
md |
|
System.Single |
tolerance |
|
Returns