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

Mesh Topology Generated from class MR.MeshTopology. This is the const half of the class. More...

+ Inheritance diagram for MR.Const_MeshTopology:

Classes

struct  _Underlying
 

Public Member Functions

virtual void Dispose ()
 
unsafe Const_MeshTopology ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_MeshTopology (MR._ByValue_MeshTopology _other)
 Generated from constructor MR.MeshTopology.MeshTopology.
 
unsafe bool isLoneEdge (MR.EdgeId a)
 checks whether the edge is disconnected from all other edges and disassociated from all vertices and faces (as if after makeEdge) Generated from method MR.MeshTopology.isLoneEdge.
 
unsafe MR.UndirectedEdgeId lastNotLoneUndirectedEdge ()
 returns last not lone undirected edge id, or invalid id if no such edge exists Generated from method MR.MeshTopology.lastNotLoneUndirectedEdge.
 
unsafe MR.EdgeId lastNotLoneEdge ()
 returns last not lone edge id, or invalid id if no such edge exists Generated from method MR.MeshTopology.lastNotLoneEdge.
 
unsafe void excludeLoneEdges (MR.UndirectedEdgeBitSet edges)
 remove all lone edges from given set Generated from method MR.MeshTopology.excludeLoneEdges.
 
unsafe ulong edgeSize ()
 returns the number of half-edge records including lone ones Generated from method MR.MeshTopology.edgeSize.
 
unsafe ulong edgeCapacity ()
 returns the number of allocated edge records Generated from method MR.MeshTopology.edgeCapacity.
 
unsafe ulong undirectedEdgeSize ()
 returns the number of undirected edges (pairs of half-edges) including lone ones Generated from method MR.MeshTopology.undirectedEdgeSize.
 
unsafe ulong undirectedEdgeCapacity ()
 returns the number of allocated undirected edges (pairs of half-edges) Generated from method MR.MeshTopology.undirectedEdgeCapacity.
 
unsafe ulong computeNotLoneUndirectedEdges ()
 computes the number of not-lone (valid) undirected edges Generated from method MR.MeshTopology.computeNotLoneUndirectedEdges.
 
unsafe MR.UndirectedEdgeBitSet findNotLoneUndirectedEdges ()
 finds and returns all not-lone (valid) undirected edges Generated from method MR.MeshTopology.findNotLoneUndirectedEdges.
 
unsafe bool hasEdge (MR.EdgeId e)
 returns true if given edge is within valid range and not-lone Generated from method MR.MeshTopology.hasEdge.
 
unsafe ulong heapBytes ()
 returns the amount of memory this object occupies on heap Generated from method MR.MeshTopology.heapBytes.
 
unsafe MR.EdgeId next (MR.EdgeId he)
 next (counter clock wise) half-edge in the origin ring Generated from method MR.MeshTopology.next.
 
unsafe MR.EdgeId prev (MR.EdgeId he)
 previous (clock wise) half-edge in the origin ring Generated from method MR.MeshTopology.prev.
 
unsafe MR.VertId org (MR.EdgeId he)
 returns origin vertex of half-edge Generated from method MR.MeshTopology.org.
 
unsafe MR.VertId dest (MR.EdgeId he)
 returns destination vertex of half-edge Generated from method MR.MeshTopology.dest.
 
unsafe MR.FaceId left (MR.EdgeId he)
 returns left face of half-edge Generated from method MR.MeshTopology.left.
 
unsafe MR.FaceId right (MR.EdgeId he)
 returns right face of half-edge Generated from method MR.MeshTopology.right.
 
unsafe bool fromSameOriginRing (MR.EdgeId a, MR.EdgeId b)
 returns true if a and b are both from the same origin ring Generated from method MR.MeshTopology.fromSameOriginRing.
 
unsafe bool fromSameLeftRing (MR.EdgeId a, MR.EdgeId b)
 returns true if a and b are both from the same left face ring Generated from method MR.MeshTopology.fromSameLeftRing.
 
unsafe int getOrgDegree (MR.EdgeId a)
 returns the number of edges around the origin vertex, returns 1 for lone edges Generated from method MR.MeshTopology.getOrgDegree.
 
unsafe int getVertDegree (MR.VertId v)
 returns the number of edges around the given vertex Generated from method MR.MeshTopology.getVertDegree.
 
unsafe int getLeftDegree (MR.EdgeId a)
 returns the number of edges around the left face: 3 for triangular faces, ... Generated from method MR.MeshTopology.getLeftDegree.
 
unsafe int getFaceDegree (MR.FaceId f)
 returns the number of edges around the given face: 3 for triangular faces, ... Generated from method MR.MeshTopology.getFaceDegree.
 
unsafe bool isLeftTri (MR.EdgeId a)
 returns true if the cell to the left of a is triangular Generated from method MR.MeshTopology.isLeftTri.
 
unsafe void getTriVerts (MR.FaceId f, ref MR.VertId v0, ref MR.VertId v1, ref MR.VertId v2)
 gets 3 vertices of given triangular face; the vertices are returned in counter-clockwise order if look from mesh outside Generated from method MR.MeshTopology.getTriVerts.
 
unsafe void getTriVerts (MR.FaceId f, ref MR.Std.Array_MRVertId_3 v)
 Generated from method MR.MeshTopology.getTriVerts.
 
unsafe MR.Std.Array_MRVertId_3 getTriVerts (MR.FaceId f)
 Generated from method MR.MeshTopology.getTriVerts.
 
unsafe bool isTriVert (MR.FaceId f, MR.VertId v)
 return true if triangular face (f) has (v) as one of its vertices Generated from method MR.MeshTopology.isTriVert.
 
unsafe MR.Std.Vector_StdArrayMRVertId3 getAllTriVerts ()
 returns three vertex ids for valid triangles, invalid triangles are skipped Generated from method MR.MeshTopology.getAllTriVerts.
 
unsafe MR.Triangulation getTriangulation ()
 returns three vertex ids for valid triangles (which can be accessed by FaceId), vertex ids for invalid triangles are undefined, and shall not be read Generated from method MR.MeshTopology.getTriangulation.
 
unsafe void getLeftTriVerts (MR.EdgeId a, ref MR.VertId v0, ref MR.VertId v1, ref MR.VertId v2)
 gets 3 vertices of the left face ( face-id may not exist, but the shape must be triangular) the vertices are returned in counter-clockwise order if look from mesh outside: v0 = org( a ), v1 = dest( a ) Generated from method MR.MeshTopology.getLeftTriVerts.
 
unsafe void getLeftTriVerts (MR.EdgeId a, ref MR.Std.Array_MRVertId_3 v)
 Generated from method MR.MeshTopology.getLeftTriVerts.
 
unsafe MR.Std.Array_MRVertId_3 getLeftTriVerts (MR.EdgeId a)
 Generated from method MR.MeshTopology.getLeftTriVerts.
 
unsafe void getLeftTriEdges (MR.EdgeId e0, ref MR.EdgeId e1, ref MR.EdgeId e2)
 given one edge with triangular face on the left; returns two other edges of the same face, oriented to have this face on the left; the edges are returned in counter-clockwise order if look from mesh outside Generated from method MR.MeshTopology.getLeftTriEdges.
 
unsafe void getTriEdges (MR.FaceId f, ref MR.EdgeId e0, ref MR.EdgeId e1, ref MR.EdgeId e2)
 gets 3 edges of given triangular face, oriented to have it on the left; the edges are returned in counter-clockwise order if look from mesh outside Generated from method MR.MeshTopology.getTriEdges.
 
unsafe bool isLeftQuad (MR.EdgeId a)
 returns true if the cell to the left of a is quadrangular Generated from method MR.MeshTopology.isLeftQuad.
 
unsafe MR.Const_Vector_MREdgeId_MRVertId edgePerVertex ()
 for all valid vertices this vector contains an edge with the origin there Generated from method MR.MeshTopology.edgePerVertex.
 
unsafe MR.EdgeId edgeWithOrg (MR.VertId a)
 returns valid edge if given vertex is present in the mesh Generated from method MR.MeshTopology.edgeWithOrg.
 
unsafe bool hasVert (MR.VertId a)
 returns true if given vertex is present in the mesh Generated from method MR.MeshTopology.hasVert.
 
unsafe int numValidVerts ()
 returns the number of valid vertices Generated from method MR.MeshTopology.numValidVerts.
 
unsafe MR.VertId lastValidVert ()
 returns last valid vertex id, or invalid id if no single valid vertex exists Generated from method MR.MeshTopology.lastValidVert.
 
unsafe ulong vertSize ()
 returns the number of vertex records including invalid ones Generated from method MR.MeshTopology.vertSize.
 
unsafe ulong vertCapacity ()
 returns the number of allocated vert records Generated from method MR.MeshTopology.vertCapacity.
 
unsafe MR.Const_VertBitSet getValidVerts ()
 returns cached set of all valid vertices Generated from method MR.MeshTopology.getValidVerts.
 
unsafe void flip (MR.VertBitSet vs)
 sets in (vs) all valid vertices that were not selected before the call, and resets other bits Generated from method MR.MeshTopology.flip.
 
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.MeshTopology.getVertIds.
 
unsafe MR.Const_Vector_MREdgeId_MRFaceId edgePerFace ()
 for all valid faces this vector contains an edge with that face at left Generated from method MR.MeshTopology.edgePerFace.
 
unsafe MR.EdgeId edgeWithLeft (MR.FaceId a)
 returns valid edge if given vertex is present in the mesh Generated from method MR.MeshTopology.edgeWithLeft.
 
unsafe bool hasFace (MR.FaceId a)
 returns true if given face is present in the mesh Generated from method MR.MeshTopology.hasFace.
 
unsafe MR.EdgeId sharedEdge (MR.FaceId l, MR.FaceId r)
 if two valid faces share the same edge then it is found and returned Generated from method MR.MeshTopology.sharedEdge.
 
unsafe MR.EdgeId sharedVertInOrg (MR.EdgeId a, MR.EdgeId b)
 if two valid edges share the same vertex then it is found and returned as Edge with this vertex in origin Generated from method MR.MeshTopology.sharedVertInOrg.
 
unsafe MR.EdgeId sharedVertInOrg (MR.FaceId l, MR.FaceId r)
 if two valid faces share the same vertex then it is found and returned as Edge with this vertex in origin Generated from method MR.MeshTopology.sharedVertInOrg.
 
unsafe MR.FaceId sharedFace (MR.EdgeId a, MR.EdgeId b)
 if two valid edges belong to same valid face then it is found and returned Generated from method MR.MeshTopology.sharedFace.
 
unsafe int numValidFaces ()
 returns the number of valid faces Generated from method MR.MeshTopology.numValidFaces.
 
unsafe MR.FaceId lastValidFace ()
 returns last valid face id, or invalid id if no single valid face exists Generated from method MR.MeshTopology.lastValidFace.
 
unsafe ulong faceSize ()
 returns the number of face records including invalid ones Generated from method MR.MeshTopology.faceSize.
 
unsafe ulong faceCapacity ()
 returns the number of allocated face records Generated from method MR.MeshTopology.faceCapacity.
 
unsafe MR.Const_FaceBitSet getValidFaces ()
 returns cached set of all valid faces Generated from method MR.MeshTopology.getValidFaces.
 
unsafe void flip (MR.FaceBitSet fs)
 sets in (fs) all valid faces that were not selected before the call, and resets other bits Generated from method MR.MeshTopology.flip.
 
unsafe MR.Const_FaceBitSet getFaceIds (MR.Const_FaceBitSet? region)
 if region pointer is not null then converts it in reference, otherwise returns all valid faces in the mesh Generated from method MR.MeshTopology.getFaceIds.
 
unsafe MR.EdgeId bdEdgeSameLeft (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 returns the first boundary edge (for given region or for whole mesh if region is nullptr) in counter-clockwise order starting from given edge with the same left face or hole; returns invalid edge if no boundary edge is found Generated from method MR.MeshTopology.bdEdgeSameLeft.
 
unsafe bool isLeftBdFace (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 returns true if left(e) is a valid (region) face, and it has a boundary edge (isBdEdge(e,region) == true) Generated from method MR.MeshTopology.isLeftBdFace.
 
unsafe MR.EdgeId bdEdgeWithLeft (MR.FaceId f, MR.Const_FaceBitSet? region=null)
 returns a boundary edge with given left face considering boundary of given region (or for whole mesh if region is nullptr); returns invalid edge if no boundary edge is found Generated from method MR.MeshTopology.bdEdgeWithLeft.
 
unsafe bool isBdFace (MR.FaceId f, MR.Const_FaceBitSet? region=null)
 returns true if given face belongs to the region and it has a boundary edge (isBdEdge(e,region) == true) Generated from method MR.MeshTopology.isBdFace.
 
unsafe MR.FaceBitSet findBdFaces (MR.Const_FaceBitSet? region=null)
 returns all faces for which isBdFace(f, region) is true Generated from method MR.MeshTopology.findBdFaces.
 
unsafe bool isLeftInRegion (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 return true if left face of given edge belongs to region (or just have valid id if region is nullptr) Generated from method MR.MeshTopology.isLeftInRegion.
 
unsafe bool isInnerEdge (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 return true if given edge is inner for given region (or for whole mesh if region is nullptr) Generated from method MR.MeshTopology.isInnerEdge.
 
unsafe bool isBdEdge (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 isBdEdge(e) returns true, if the edge (e) is a boundary edge of the mesh: (e) has a hole from one or both sides. isBdEdge(e, region) returns true, if the edge (e) is a boundary edge of the given region: (e) has a region's face from one side (region.test(f0)==true) and a hole or not-region face from the other side (!f1 || region.test(f1)==false). If the region contains all faces of the mesh then isBdEdge(e) is the union of isBdEdge(e, region) and not-lone edges without both left and right faces. Generated from method MR.MeshTopology.isBdEdge.
 
unsafe MR.EdgeBitSet findLeftBdEdges (MR.Const_FaceBitSet? region=null, MR.Const_EdgeBitSet? test=null)
 returns all (test) edges for which left(e) does not belong to the region and isBdEdge(e, region) is true Generated from method MR.MeshTopology.findLeftBdEdges.
 
unsafe MR.EdgeId bdEdgeSameOrigin (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 returns the first boundary edge (for given region or for whole mesh if region is nullptr) in counter-clockwise order starting from given edge with the same origin; returns invalid edge if no boundary edge is found Generated from method MR.MeshTopology.bdEdgeSameOrigin.
 
unsafe bool isBdVertexInOrg (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 returns true if edge's origin is on (region) boundary Generated from method MR.MeshTopology.isBdVertexInOrg.
 
unsafe MR.EdgeId bdEdgeWithOrigin (MR.VertId v, MR.Const_FaceBitSet? region=null)
 returns a boundary edge with given vertex in origin considering boundary of given region (or for whole mesh if region is nullptr); returns invalid edge if no boundary edge is found Generated from method MR.MeshTopology.bdEdgeWithOrigin.
 
unsafe bool isBdVertex (MR.VertId v, MR.Const_FaceBitSet? region=null)
 returns true if given vertex is on (region) boundary Generated from method MR.MeshTopology.isBdVertex.
 
unsafe MR.VertBitSet findBdVerts (MR.Const_FaceBitSet? region=null, MR.Const_VertBitSet? test=null)
 returns all (test) vertices for which isBdVertex(v, region) is true Generated from method MR.MeshTopology.findBdVerts.
 
unsafe bool isInnerOrBdVertex (MR.VertId v, MR.Const_FaceBitSet? region=null)
 returns true if one of incident faces of given vertex pertain to given region (or any such face exists if region is nullptr) Generated from method MR.MeshTopology.isInnerOrBdVertex.
 
unsafe bool isLeftBdEdge (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 returns true if left face of given edge belongs to given region (if provided) and right face either does not exist or does not belong Generated from method MR.MeshTopology.isLeftBdEdge.
 
unsafe bool isInnerOrBdEdge (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 return true if given edge is inner or boundary for given region (or for whole mesh if region is nullptr), returns false for lone edges Generated from method MR.MeshTopology.isInnerOrBdEdge.
 
unsafe MR.EdgeId nextLeftBd (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 given a (region) boundary edge with no right face in given region, returns next boundary edge for the same region: dest(e)==org(res) Generated from method MR.MeshTopology.nextLeftBd.
 
unsafe MR.EdgeId prevLeftBd (MR.EdgeId e, MR.Const_FaceBitSet? region=null)
 given a (region) boundary edge with no right face in given region, returns previous boundary edge for the same region; dest(res)==org(e) Generated from method MR.MeshTopology.prevLeftBd.
 
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.MeshTopology.findEdge.
 
unsafe bool isClosed (MR.Const_FaceBitSet? region=null)
 returns true if the mesh (region) does not have any neighboring holes Generated from method MR.MeshTopology.isClosed.
 
unsafe MR.Std.Vector_MREdgeId findHoleRepresentiveEdges (MR.Const_FaceBitSet? region=null)
 returns one edge with no valid left face for every boundary in the mesh; if region is given, then returned edges must have valid right faces from the region Generated from method MR.MeshTopology.findHoleRepresentiveEdges.
 
unsafe int findNumHoles (MR.EdgeBitSet? holeRepresentativeEdges=null)
 returns the number of hole loops in the mesh;
 
unsafe MR.Std.Vector_MREdgeId getLeftRing (MR.EdgeId e)
 returns full edge-loop of left face from (e) starting from (e) itself Generated from method MR.MeshTopology.getLeftRing.
 
unsafe MR.Std.Vector_StdVectorMREdgeId getLeftRings (MR.Std.Const_Vector_MREdgeId es)
 returns full edge-loops of left faces from every edge in (es); each edge-loop will be returned only once even if some faces are represented by more than one edge in (es) Generated from method MR.MeshTopology.getLeftRings.
 
unsafe MR.VertBitSet getPathVertices (MR.Std.Const_Vector_MREdgeId path)
 returns all vertices incident to path edges Generated from method MR.MeshTopology.getPathVertices.
 
unsafe MR.FaceBitSet getPathLeftFaces (MR.Std.Const_Vector_MREdgeId path)
 returns all valid left faces of path edges Generated from method MR.MeshTopology.getPathLeftFaces.
 
unsafe MR.FaceBitSet getPathRightFaces (MR.Std.Const_Vector_MREdgeId path)
 returns all valid right faces of path edges Generated from method MR.MeshTopology.getPathRightFaces.
 
unsafe void write (MR.Std.Ostream s)
 saves in binary stream Generated from method MR.MeshTopology.write.
 
unsafe bool updatingValids ()
 returns whether the methods validVerts(), validFaces(), numValidVerts(), numValidFaces() can be called Generated from method MR.MeshTopology.updatingValids.
 
unsafe bool checkValidity (MR.Std._ByValue_Function_BoolFuncFromFloat? cb=null, bool? allVerts=null)
 verifies that all internal data structures are valid; if allVerts=true then checks in addition that all not-lone edges have valid vertices on both ends Generated from method MR.MeshTopology.checkValidity. Parameter cb defaults to {}. Parameter allVerts defaults to true.
 
bool Equals (MR.Const_MeshTopology? b)
 
override bool Equals (object? other)
 

Static Public Member Functions

static unsafe bool operator== (MR.Const_MeshTopology _this, MR.Const_MeshTopology b)
 compare that two topologies are exactly the same Generated from method MR.MeshTopology.operator==.
 
static unsafe bool operator!= (MR.Const_MeshTopology _this, MR.Const_MeshTopology b)
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< Const_MeshTopology >
bool _IsOwningVal
 
- Properties inherited from MR.Misc.Object< Const_MeshTopology >
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

Mesh Topology Generated from class MR.MeshTopology. This is the const half of the class.

Member Function Documentation

◆ findNumHoles()

unsafe int MR.Const_MeshTopology.findNumHoles ( MR.EdgeBitSet? holeRepresentativeEdges = null)
inline

returns the number of hole loops in the mesh;

Parameters
holeRepresentativeEdgesoptional output of the smallest edge id with no valid left face in every hole Generated from method MR.MeshTopology.findNumHoles.

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