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

topology of one or several polylines (how line segments are connected in lines) common for 2D and 3D polylines Generated from class MR.PolylineTopology. This is the const half of the class. More...

+ Inheritance diagram for MR.Const_PolylineTopology:

Classes

struct  _Underlying
 

Public Member Functions

virtual void Dispose ()
 
unsafe Const_PolylineTopology ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_PolylineTopology (MR._ByValue_PolylineTopology _other)
 Generated from constructor MR.PolylineTopology.PolylineTopology.
 
unsafe bool isLoneEdge (MR.EdgeId a)
 checks whether the edge is disconnected from all other edges and disassociated from all vertices (as if after makeEdge) Generated from method MR.PolylineTopology.isLoneEdge.
 
unsafe MR.UndirectedEdgeId lastNotLoneUndirectedEdge ()
 returns last not lone undirected edge id, or invalid id if no such edge exists Generated from method MR.PolylineTopology.lastNotLoneUndirectedEdge.
 
unsafe MR.EdgeId lastNotLoneEdge ()
 returns last not lone edge id, or invalid id if no such edge exists Generated from method MR.PolylineTopology.lastNotLoneEdge.
 
unsafe ulong edgeSize ()
 returns the number of half-edge records including lone ones Generated from method MR.PolylineTopology.edgeSize.
 
unsafe ulong edgeCapacity ()
 returns the number of allocated edge records Generated from method MR.PolylineTopology.edgeCapacity.
 
unsafe ulong undirectedEdgeSize ()
 returns the number of undirected edges (pairs of half-edges) including lone ones Generated from method MR.PolylineTopology.undirectedEdgeSize.
 
unsafe ulong undirectedEdgeCapacity ()
 returns the number of allocated undirected edges (pairs of half-edges) Generated from method MR.PolylineTopology.undirectedEdgeCapacity.
 
unsafe ulong computeNotLoneUndirectedEdges ()
 computes the number of not-lone (valid) undirected edges Generated from method MR.PolylineTopology.computeNotLoneUndirectedEdges.
 
unsafe bool hasEdge (MR.EdgeId e)
 returns true if given edge is within valid range and not-lone Generated from method MR.PolylineTopology.hasEdge.
 
unsafe ulong heapBytes ()
 returns the amount of memory this object occupies on heap Generated from method MR.PolylineTopology.heapBytes.
 
unsafe MR.EdgeId next (MR.EdgeId he)
 next (counter clock wise) half-edge in the origin ring Generated from method MR.PolylineTopology.next.
 
unsafe MR.VertId org (MR.EdgeId he)
 returns origin vertex of half-edge Generated from method MR.PolylineTopology.org.
 
unsafe MR.VertId dest (MR.EdgeId he)
 returns destination vertex of half-edge Generated from method MR.PolylineTopology.dest.
 
unsafe MR.Const_Vector_MREdgeId_MRVertId edgePerVertex ()
 for all valid vertices this vector contains an edge with the origin there Generated from method MR.PolylineTopology.edgePerVertex.
 
unsafe MR.Vector_MRVertId_MREdgeId getOrgs ()
 for all edges this vector contains its origin Generated from method MR.PolylineTopology.getOrgs.
 
unsafe MR.EdgeId edgeWithOrg (MR.VertId a)
 returns valid edge if given vertex is present in the mesh Generated from method MR.PolylineTopology.edgeWithOrg.
 
unsafe bool hasVert (MR.VertId a)
 returns true if given vertex is present in the mesh Generated from method MR.PolylineTopology.hasVert.
 
unsafe int getVertDegree (MR.VertId a)
 returns 0 if given vertex does not exist, 1 if it has one incident edge, and 2 if it has two incident edges Generated from method MR.PolylineTopology.getVertDegree.
 
unsafe int numValidVerts ()
 returns the number of valid vertices Generated from method MR.PolylineTopology.numValidVerts.
 
unsafe MR.VertId lastValidVert ()
 returns last valid vertex id, or invalid id if no single valid vertex exists Generated from method MR.PolylineTopology.lastValidVert.
 
unsafe ulong vertSize ()
 returns the number of vertex records including invalid ones Generated from method MR.PolylineTopology.vertSize.
 
unsafe ulong vertCapacity ()
 returns the number of allocated vert records Generated from method MR.PolylineTopology.vertCapacity.
 
unsafe MR.Const_VertBitSet getValidVerts ()
 returns cached set of all valid vertices Generated from method MR.PolylineTopology.getValidVerts.
 
unsafe MR.Const_VertBitSet getVertIds (MR.Const_VertBitSet? region)
 if region pointer is not null then converts it in reference, otherwise returns all valid vertices in the mesh Generated from method MR.PolylineTopology.getVertIds.
 
unsafe MR.EdgeId findEdge (MR.VertId o, MR.VertId d)
 finds and returns edge from o to d in the mesh; returns invalid edge otherwise Generated from method MR.PolylineTopology.findEdge.
 
unsafe MR.VertBitSet getPathVertices (MR.Std.Const_Vector_MREdgeId path)
 returns all vertices incident to path edges Generated from method MR.PolylineTopology.getPathVertices.
 
unsafe void write (MR.Std.Ostream s)
 saves this in binary stream Generated from method MR.PolylineTopology.write.
 
unsafe bool isConsistentlyOriented ()
 returns true if for each edge e: e == e.next() || e.odd() == next( e ).sym().odd() Generated from method MR.PolylineTopology.isConsistentlyOriented.
 
unsafe bool checkValidity ()
 verifies that all internal data structures are valid Generated from method MR.PolylineTopology.checkValidity.
 
unsafe bool isClosed ()
 returns true if the polyline does not have any holes Generated from method MR.PolylineTopology.isClosed.
 
bool Equals (MR.Const_PolylineTopology? b)
 
override bool Equals (object? other)
 

Static Public Member Functions

static unsafe bool operator== (MR.Const_PolylineTopology _this, MR.Const_PolylineTopology b)
 comparison via edges (all other members are considered as not important caches) Generated from method MR.PolylineTopology.operator==.
 
static unsafe bool operator!= (MR.Const_PolylineTopology _this, MR.Const_PolylineTopology b)
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< Const_PolylineTopology >
bool _IsOwningVal
 
- Properties inherited from MR.Misc.Object< Const_PolylineTopology >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Detailed Description

topology of one or several polylines (how line segments are connected in lines) common for 2D and 3D polylines Generated from class MR.PolylineTopology. This is the const half of the class.


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