MeshLib C# Docs
Loading...
Searching...
No Matches
MR.PolylineComponents Class Reference

Classes

class  _InOptConst_LargeByLengthComponentsSettings
 This is used for optional parameters of class LargeByLengthComponentsSettings with default arguments. This is only used const parameters. For non-const ones we have _InOptMut_LargeByLengthComponentsSettings. Usage:
 
class  _InOptMut_LargeByLengthComponentsSettings
 This is used for optional parameters of class LargeByLengthComponentsSettings with default arguments. This is only used mutable parameters. For const ones we have _InOptConst_LargeByLengthComponentsSettings. Usage:
 
class  Const_LargeByLengthComponentsSettings
 Generated from class MR.PolylineComponents.LargeByLengthComponentsSettings. This is the const half of the class.
 
class  LargeByLengthComponentsSettings
 Generated from class MR.PolylineComponents.LargeByLengthComponentsSettings. This is the non-const half of the class. More...
 

Static Public Member Functions

static unsafe ulong getNumComponents (MR.Const_PolylineTopology topology)
 returns the number of connected components in polyline Generated from function MR.PolylineComponents.getNumComponents.
 
static unsafe MR.UndirectedEdgeBitSet getComponent (MR.Const_PolylineTopology topology, MR.UndirectedEdgeId id)
 returns one connected component containing given undirected edge id, not effective to call more than once, if several components are needed use getAllComponents Generated from function MR.PolylineComponents.getComponent.
 
static unsafe MR.Std.Vector_MRUndirectedEdgeBitSet getAllComponents (MR.Const_PolylineTopology topology)
 gets all connected components of polyline topology
 
static unsafe MR.Std.Pair_StdVectorMRUndirectedEdgeBitSet_Int getAllComponents (MR.Const_PolylineTopology topology, int maxComponentCount)
 gets all connected components of polyline topology \detail if components number more than the maxComponentCount, they will be combined into groups of the same size
 
static unsafe MR.Std.Vector_MRUndirectedEdgeBitSet getNLargeByLengthComponents (MR.Const_Polyline2 polyline, MR.PolylineComponents.Const_LargeByLengthComponentsSettings settings)
 returns requested number of largest by length connected components in descending by length order Generated from function MR.PolylineComponents.getNLargeByLengthComponents<MR.Vector2f>.
 
static unsafe MR.Std.Vector_MRUndirectedEdgeBitSet getNLargeByLengthComponents (MR.Const_Polyline3 polyline, MR.PolylineComponents.Const_LargeByLengthComponentsSettings settings)
 returns requested number of largest by length connected components in descending by length order Generated from function MR.PolylineComponents.getNLargeByLengthComponents<MR.Vector3f>.
 
static unsafe MR.UnionFind_MRUndirectedEdgeId getUnionFindStructure (MR.Const_PolylineTopology topology)
 gets union-find structure for given polyline Generated from function MR.PolylineComponents.getUnionFindStructure.
 
static unsafe MR.UndirectedEdgeBitSet getLargestComponent (MR.Const_Polyline2 polyline, float? minLength=null, MR.Misc.InOut< int >? numSmallerComponents=null)
 returns largest by length component Generated from function MR.PolylineComponents.getLargestComponent<MR.Vector2f>. Parameter minLength defaults to 0.
 
static unsafe MR.UndirectedEdgeBitSet getLargestComponent (MR.Const_Polyline3 polyline, float? minLength=null, MR.Misc.InOut< int >? numSmallerComponents=null)
 returns largest by length component Generated from function MR.PolylineComponents.getLargestComponent<MR.Vector3f>. Parameter minLength defaults to 0.
 

Member Function Documentation

◆ getAllComponents() [1/2]

static unsafe MR.Std.Vector_MRUndirectedEdgeBitSet MR.PolylineComponents.getAllComponents ( MR.Const_PolylineTopology topology)
inlinestatic

gets all connected components of polyline topology

Note
be careful, if mesh is large enough and has many components, the memory overflow will occur Generated from function MR.PolylineComponents.getAllComponents.

◆ getAllComponents() [2/2]

static unsafe MR.Std.Pair_StdVectorMRUndirectedEdgeBitSet_Int MR.PolylineComponents.getAllComponents ( MR.Const_PolylineTopology topology,
int maxComponentCount )
inlinestatic

gets all connected components of polyline topology \detail if components number more than the maxComponentCount, they will be combined into groups of the same size

Parameters
maxComponentCountshould be more then 1
Returns
pair components bitsets vector and number components in one group if components number more than maxComponentCount Generated from function MR.PolylineComponents.getAllComponents.

◆ getComponent()

static unsafe MR.UndirectedEdgeBitSet MR.PolylineComponents.getComponent ( MR.Const_PolylineTopology topology,
MR.UndirectedEdgeId id )
inlinestatic

returns one connected component containing given undirected edge id, not effective to call more than once, if several components are needed use getAllComponents Generated from function MR.PolylineComponents.getComponent.

◆ getLargestComponent() [1/2]

static unsafe MR.UndirectedEdgeBitSet MR.PolylineComponents.getLargestComponent ( MR.Const_Polyline2 polyline,
float? minLength = null,
MR.Misc.InOut< int >? numSmallerComponents = null )
inlinestatic

returns largest by length component Generated from function MR.PolylineComponents.getLargestComponent<MR.Vector2f>. Parameter minLength defaults to 0.

◆ getLargestComponent() [2/2]

static unsafe MR.UndirectedEdgeBitSet MR.PolylineComponents.getLargestComponent ( MR.Const_Polyline3 polyline,
float? minLength = null,
MR.Misc.InOut< int >? numSmallerComponents = null )
inlinestatic

returns largest by length component Generated from function MR.PolylineComponents.getLargestComponent<MR.Vector3f>. Parameter minLength defaults to 0.

◆ getNLargeByLengthComponents() [1/2]

static unsafe MR.Std.Vector_MRUndirectedEdgeBitSet MR.PolylineComponents.getNLargeByLengthComponents ( MR.Const_Polyline2 polyline,
MR.PolylineComponents.Const_LargeByLengthComponentsSettings settings )
inlinestatic

returns requested number of largest by length connected components in descending by length order Generated from function MR.PolylineComponents.getNLargeByLengthComponents<MR.Vector2f>.

◆ getNLargeByLengthComponents() [2/2]

static unsafe MR.Std.Vector_MRUndirectedEdgeBitSet MR.PolylineComponents.getNLargeByLengthComponents ( MR.Const_Polyline3 polyline,
MR.PolylineComponents.Const_LargeByLengthComponentsSettings settings )
inlinestatic

returns requested number of largest by length connected components in descending by length order Generated from function MR.PolylineComponents.getNLargeByLengthComponents<MR.Vector3f>.

◆ getNumComponents()

static unsafe ulong MR.PolylineComponents.getNumComponents ( MR.Const_PolylineTopology topology)
inlinestatic

returns the number of connected components in polyline Generated from function MR.PolylineComponents.getNumComponents.

◆ getUnionFindStructure()

static unsafe MR.UnionFind_MRUndirectedEdgeId MR.PolylineComponents.getUnionFindStructure ( MR.Const_PolylineTopology topology)
inlinestatic

gets union-find structure for given polyline Generated from function MR.PolylineComponents.getUnionFindStructure.


The documentation for this class was generated from the following file: