Class MeshConnectedComponents
Inheritance
MeshConnectedComponents
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class MeshConnectedComponents : IEnumerable<MeshConnectedComponents.Component>, IEnumerable
Constructors
MeshConnectedComponents(DMesh3)
Declaration
public MeshConnectedComponents(DMesh3 mesh)
Parameters
Type |
Name |
Description |
DMesh3 |
mesh |
|
Fields
Components
Declaration
public List<MeshConnectedComponents.Component> Components
Field Value
FilterF
Declaration
public Func<int, bool> FilterF
Field Value
FilterSet
Declaration
public IEnumerable<int> FilterSet
Field Value
Mesh
Declaration
Field Value
SeedFilterF
Declaration
public Func<int, bool> SeedFilterF
Field Value
Properties
Count
Declaration
public int Count { get; }
Property Value
Item[Int32]
Declaration
public MeshConnectedComponents.Component this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
LargestByCount
Declaration
public int LargestByCount { get; }
Property Value
Methods
FindConnectedT()
Declaration
public void FindConnectedT()
FindConnectedT(DMesh3, Int32)
Utility function that finds set of triangles connected to tSeed. Does not use MeshConnectedComponents class.
Declaration
public static HashSet<int> FindConnectedT(DMesh3 mesh, int tSeed)
Parameters
Returns
Type |
Description |
HashSet<Int32> |
|
GetEnumerator()
Declaration
public IEnumerator<MeshConnectedComponents.Component> GetEnumerator()
Returns
LargestT(DMesh3)
extract largest shell of meshIn
Declaration
public static DMesh3 LargestT(DMesh3 meshIn)
Parameters
Type |
Name |
Description |
DMesh3 |
meshIn |
|
Returns
Separate(DMesh3)
Separate input mesh into disconnected shells.
Resulting array is sorted by decreasing triangle count.
Declaration
public static DMesh3[] Separate(DMesh3 meshIn)
Parameters
Type |
Name |
Description |
DMesh3 |
meshIn |
|
Returns
SortByCount(Boolean)
Declaration
public void SortByCount(bool bIncreasing = true)
Parameters
Type |
Name |
Description |
Boolean |
bIncreasing |
|
SortByValue(Func<MeshConnectedComponents.Component, Double>, Boolean)
Evaluate valueF for each component and sort by that
Declaration
public void SortByValue(Func<MeshConnectedComponents.Component, double> valueF, bool bIncreasing = true)
Parameters
Implements