MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.MeshTopology Class Reference
Inheritance diagram for meshlib.MeshTopology:

Public Member Functions

 MeshTopology (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MeshTopology ()
 MeshTopology (meshlib.MeshTopology _other)
meshlib.MeshTopology assignFromAnother (meshlib.MeshTopology _other)
meshlib.EdgeId makeEdge ()
meshlib.EdgeId makeEdges (int num)
boolean isLoneEdge (meshlib.EdgeId a)
meshlib.UndirectedEdgeId lastNotLoneUndirectedEdge ()
meshlib.EdgeId lastNotLoneEdge ()
void excludeLoneEdges (meshlib.UndirectedEdgeBitSet edges)
long edgeSize ()
long edgeCapacity ()
long undirectedEdgeSize ()
long undirectedEdgeCapacity ()
long computeNotLoneUndirectedEdges ()
meshlib.UndirectedEdgeBitSet findNotLoneUndirectedEdges ()
void edgeReserve (long newCapacity)
boolean hasEdge (meshlib.EdgeId e)
long heapBytes ()
void shrinkToFit ()
void clear ()
void splice (meshlib.EdgeId a, meshlib.EdgeId b)
meshlib.EdgeId collapseEdge (meshlib.EdgeId e, meshlib.std_function_void_from_MR_EdgeId_MR_EdgeId onEdgeDel)
meshlib.EdgeId next (meshlib.EdgeId he)
meshlib.EdgeId prev (meshlib.EdgeId he)
meshlib.VertId org (meshlib.EdgeId he)
meshlib.VertId dest (meshlib.EdgeId he)
meshlib.FaceId left (meshlib.EdgeId he)
meshlib.FaceId right (meshlib.EdgeId he)
void setOrg (meshlib.EdgeId a, meshlib.VertId v)
void setLeft (meshlib.EdgeId a, meshlib.FaceId f)
boolean fromSameOriginRing (meshlib.EdgeId a, meshlib.EdgeId b)
boolean fromSameLeftRing (meshlib.EdgeId a, meshlib.EdgeId b)
int getOrgDegree (meshlib.EdgeId a)
int getVertDegree (meshlib.VertId v)
boolean isOrgInnerAndHasDegree (meshlib.EdgeId a, int d)
boolean isVertInnerAndHasDegree (meshlib.VertId v, int d)
int getLeftDegree (meshlib.EdgeId a)
int getFaceDegree (meshlib.FaceId f)
boolean isLeftTri (meshlib.EdgeId a)
void getTriVerts (meshlib.FaceId f, meshlib.VertId v0, meshlib.VertId v1, meshlib.VertId v2)
void getTriVerts (meshlib.FaceId f, meshlib.std_array_MR_VertId_3 v)
meshlib.std_array_MR_VertId_3 getTriVerts (meshlib.FaceId f)
boolean isTriVert (meshlib.FaceId f, meshlib.VertId v)
meshlib.std_vector_std_array_MR_VertId_3 getAllTriVerts ()
meshlib.Triangulation getTriangulation ()
void getLeftTriVerts (meshlib.EdgeId a, meshlib.VertId v0, meshlib.VertId v1, meshlib.VertId v2)
void getLeftTriVerts (meshlib.EdgeId a, meshlib.std_array_MR_VertId_3 v)
meshlib.std_array_MR_VertId_3 getLeftTriVerts (meshlib.EdgeId a)
void getLeftTriEdges (meshlib.EdgeId e0, meshlib.EdgeId e1, meshlib.EdgeId e2)
void getTriEdges (meshlib.FaceId f, meshlib.EdgeId e0, meshlib.EdgeId e1, meshlib.EdgeId e2)
boolean isLeftQuad (meshlib.EdgeId a)
meshlib.Vector_MR_EdgeId_MR_VertId edgePerVertex ()
meshlib.EdgeId edgeWithOrg (meshlib.VertId a)
boolean hasVert (meshlib.VertId a)
int numValidVerts ()
meshlib.VertId lastValidVert ()
meshlib.VertId addVertId ()
void vertResize (long newSize)
void vertResizeWithReserve (long newSize)
void vertReserve (long newCapacity)
long vertSize ()
long vertCapacity ()
meshlib.VertBitSet getValidVerts ()
void flip (meshlib.VertBitSet vs)
meshlib.VertBitSet getVertIds (meshlib.VertBitSet region)
meshlib.Vector_MR_EdgeId_MR_FaceId edgePerFace ()
meshlib.EdgeId edgeWithLeft (meshlib.FaceId a)
boolean hasFace (meshlib.FaceId a)
meshlib.EdgeId sharedEdge (meshlib.FaceId l, meshlib.FaceId r)
meshlib.EdgeId sharedVertInOrg (meshlib.EdgeId a, meshlib.EdgeId b)
meshlib.EdgeId sharedVertInOrg (meshlib.FaceId l, meshlib.FaceId r)
meshlib.FaceId sharedFace (meshlib.EdgeId a, meshlib.EdgeId b)
int numValidFaces ()
meshlib.FaceId lastValidFace ()
meshlib.FaceId addFaceId ()
void deleteFace (meshlib.FaceId f, meshlib.UndirectedEdgeBitSet keepEdges)
void deleteFaces (meshlib.FaceBitSet fs, meshlib.UndirectedEdgeBitSet keepEdges)
meshlib.VacantElements deleteFacesFindVacant (meshlib.FaceBitSet fs, meshlib.UndirectedEdgeBitSet keepEdges)
void deleteFacesKeepEdges (meshlib.FaceBitSet fs)
void faceResize (long newSize)
void faceResizeWithReserve (long newSize)
void faceReserve (long newCapacity)
long faceSize ()
long faceCapacity ()
meshlib.FaceBitSet getValidFaces ()
void flip (meshlib.FaceBitSet fs)
meshlib.FaceBitSet getFaceIds (meshlib.FaceBitSet region)
meshlib.EdgeId bdEdgeSameLeft (meshlib.EdgeId e, meshlib.FaceBitSet region)
boolean isLeftBdFace (meshlib.EdgeId e, meshlib.FaceBitSet region)
meshlib.EdgeId bdEdgeWithLeft (meshlib.FaceId f, meshlib.FaceBitSet region)
boolean isBdFace (meshlib.FaceId f, meshlib.FaceBitSet region)
meshlib.FaceBitSet findBdFaces (meshlib.FaceBitSet region)
boolean isLeftInRegion (meshlib.EdgeId e, meshlib.FaceBitSet region)
boolean isInnerEdge (meshlib.EdgeId e, meshlib.FaceBitSet region)
boolean isBdEdge (meshlib.EdgeId e, meshlib.FaceBitSet region)
meshlib.EdgeBitSet findLeftBdEdges (meshlib.FaceBitSet region, meshlib.EdgeBitSet test)
meshlib.EdgeId bdEdgeSameOrigin (meshlib.EdgeId e, meshlib.FaceBitSet region)
boolean isBdVertexInOrg (meshlib.EdgeId e, meshlib.FaceBitSet region)
meshlib.EdgeId bdEdgeWithOrigin (meshlib.VertId v, meshlib.FaceBitSet region)
boolean isBdVertex (meshlib.VertId v, meshlib.FaceBitSet region)
meshlib.VertBitSet findBdVerts (meshlib.FaceBitSet region, meshlib.VertBitSet test)
boolean isInnerOrBdVertex (meshlib.VertId v, meshlib.FaceBitSet region)
boolean isLeftBdEdge (meshlib.EdgeId e, meshlib.FaceBitSet region)
boolean isInnerOrBdEdge (meshlib.EdgeId e, meshlib.FaceBitSet region)
meshlib.EdgeId nextLeftBd (meshlib.EdgeId e, meshlib.FaceBitSet region, meshlib.Turn turn)
meshlib.EdgeId prevLeftBd (meshlib.EdgeId e, meshlib.FaceBitSet region, meshlib.Turn turn)
meshlib.EdgeId findEdge (meshlib.VertId o, meshlib.VertId d)
boolean isClosed (meshlib.FaceBitSet region)
meshlib.std_vector_MR_EdgeId findHoleRepresentiveEdges (meshlib.FaceBitSet region)
int findNumHoles (meshlib.EdgeBitSet holeRepresentativeEdges)
meshlib.std_vector_MR_EdgeId getLeftRing (meshlib.EdgeId e)
meshlib.std_vector_std_vector_MR_EdgeId getLeftRings (meshlib.std_vector_MR_EdgeId es)
meshlib.VertBitSet getPathVertices (meshlib.std_vector_MR_EdgeId path)
meshlib.FaceBitSet getPathLeftFaces (meshlib.std_vector_MR_EdgeId path)
meshlib.FaceBitSet getPathRightFaces (meshlib.std_vector_MR_EdgeId path)
void flipEdge (meshlib.EdgeId e)
meshlib.EdgeId splitEdge (meshlib.EdgeId e, meshlib.FaceBitSet region, meshlib.phmap.phmap_flat_hash_map_MR_FaceId_MR_FaceId_phmap_Hash_MR_FaceId_phmap_EqualTo_MR_FaceId_MR_Allocator_st__dda91c58 new2Old)
meshlib.VertId splitFace (meshlib.FaceId f, meshlib.FaceBitSet region, meshlib.phmap.phmap_flat_hash_map_MR_FaceId_MR_FaceId_phmap_Hash_MR_FaceId_phmap_EqualTo_MR_FaceId_MR_Allocator_st__dda91c58 new2Old)
void flipOrientation (meshlib.UndirectedEdgeBitSet fullComponents)
void addPart (meshlib.MeshTopology from, meshlib.PartMapping map, java.lang.Boolean rearrangeTriangles)
void addPart (meshlib.MeshTopology from, meshlib.FaceMap outFmap, meshlib.VertMap outVmap, meshlib.WholeEdgeMap outEmap, java.lang.Boolean rearrangeTriangles)
void addPartByMask (meshlib.MeshTopology from, meshlib.FaceBitSet fromFaces, meshlib.PartMapping map, meshlib.VacantElements vacant)
boolean addPartByMask (meshlib.MeshTopology from, meshlib.FaceBitSet fromFaces, java.lang.Boolean flipOrientation, meshlib.std_vector_std_vector_MR_EdgeId thisContours, meshlib.std_vector_std_vector_MR_EdgeId fromContours, meshlib.PartMapping map, meshlib.VacantElements vacant)
void rotateTriangles ()
void pack (meshlib.FaceMap outFmap, meshlib.VertMap outVmap, meshlib.WholeEdgeMap outEmap, java.lang.Boolean rearrangeTriangles)
void pack (meshlib.PackMapping map)
void packMinMem (meshlib.PackMapping map)
void write (meshlib.std_ostream s)
void read (meshlib.std_istream s, meshlib.std_function_bool_from_float callback)
boolean opEqual (meshlib.MeshTopology b)
boolean opNotEqual (meshlib.MeshTopology b)
void resizeBeforeParallelAdd (long edgeSize, long vertSize, long faceSize)
void addPackedPart (meshlib.MeshTopology from, meshlib.EdgeId toEdgeId, meshlib.FaceMap fmap, meshlib.VertMap vmap, java.lang.Integer shiftFaceId)
boolean computeValidsFromEdges (meshlib.std_function_bool_from_float cb)
void stopUpdatingValids ()
boolean updatingValids ()
void preferEdges (meshlib.UndirectedEdgeBitSet stableEdges)
boolean buildGridMesh (meshlib.GridSettings settings, meshlib.std_function_bool_from_float cb)
boolean buildFromManifoldTriangles (meshlib.Triangulation t, meshlib.meshbuilder.BuildSettings settings, meshlib.bool_output nonManifoldVertsOnly)
boolean checkValidity (meshlib.std_function_bool_from_float cb, java.lang.Boolean allVerts)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Mesh Topology Generated from class MR::MeshTopology.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ MeshTopology() [1/3]

meshlib.MeshTopology.MeshTopology ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ MeshTopology() [2/3]

meshlib.MeshTopology.MeshTopology ( )

Constructs an empty (default-constructed) instance.

Calls MR_MeshTopology_DefaultConstruct().

◆ MeshTopology() [3/3]

meshlib.MeshTopology.MeshTopology ( meshlib.MeshTopology _other)

Generated from constructor MR::MeshTopology::MeshTopology. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_MeshTopology_ConstructFromAnother().

Member Function Documentation

◆ addFaceId()

meshlib.FaceId meshlib.MeshTopology.addFaceId ( )

creates new face-id not associated with any edge yet Generated from method MR::MeshTopology::addFaceId.

Calls MR_MeshTopology_addFaceId().

◆ addPackedPart()

void meshlib.MeshTopology.addPackedPart ( meshlib.MeshTopology from,
meshlib.EdgeId toEdgeId,
meshlib.FaceMap fmap,
meshlib.VertMap vmap,
java.lang.Integer shiftFaceId )

copies topology (from) into this;

Parameters
fromedges must be tightly packes without any lone edges, and they are mapped [0, from.edges.size()) -> [toEdgeId, toEdgeId + from.edges.size());
fmap,vmapmapping of vertices and faces if it is given ( from.id -> this.id )
shiftFaceIdis added to all face ids from fmap Generated from method MR::MeshTopology::addPackedPart.

Calls MR_MeshTopology_addPackedPart().

◆ addPart() [1/2]

void meshlib.MeshTopology.addPart ( meshlib.MeshTopology from,
meshlib.FaceMap outFmap,
meshlib.VertMap outVmap,
meshlib.WholeEdgeMap outEmap,
java.lang.Boolean rearrangeTriangles )

Generated from method MR::MeshTopology::addPart.

Calls MR_MeshTopology_addPart_5().

◆ addPart() [2/2]

void meshlib.MeshTopology.addPart ( meshlib.MeshTopology from,
meshlib.PartMapping map,
java.lang.Boolean rearrangeTriangles )

appends mesh topology (from) in addition to the current topology: creates new edges, faces, verts;

Parameters
rearrangeTrianglesif true then the order of triangles is selected according to the order of their vertices, please call rotateTriangles() first Generated from method MR::MeshTopology::addPart.

Calls MR_MeshTopology_addPart_3().

◆ addPartByMask() [1/2]

boolean meshlib.MeshTopology.addPartByMask ( meshlib.MeshTopology from,
meshlib.FaceBitSet fromFaces,
java.lang.Boolean flipOrientation,
meshlib.std_vector_std_vector_MR_EdgeId thisContours,
meshlib.std_vector_std_vector_MR_EdgeId fromContours,
meshlib.PartMapping map,
meshlib.VacantElements vacant )

this version has more parameters

Parameters
flipOrientationif true then every from triangle is inverted before adding
thisContourscontours on this mesh (no left face) that have to be stitched with
fromContourscontours on from mesh during addition (no left face if flipOrientation otherwise no right face) optional
vacantcan be passed to copy elements not at the end, but over given ones, which the user guaranties to be free/lone
Returns
false if the given contours cannot be stitched (see the conditions on them above), and this topology is left unmodified then (the src2tgt mappings in (map) argument can be partially filled nevertheless) Generated from method MR::MeshTopology::addPartByMask.

Calls MR_MeshTopology_addPartByMask_7().

◆ addPartByMask() [2/2]

void meshlib.MeshTopology.addPartByMask ( meshlib.MeshTopology from,
meshlib.FaceBitSet fromFaces,
meshlib.PartMapping map,
meshlib.VacantElements vacant )

appends the portion of (from) specified by fromFaces in addition to the current topology: creates new edges, faces, verts; optional

Parameters
vacantcan be passed to copy elements not at the end, but over given ones, which the user guaranties to be free/lone Generated from method MR::MeshTopology::addPartByMask.

Calls MR_MeshTopology_addPartByMask_4().

◆ addVertId()

meshlib.VertId meshlib.MeshTopology.addVertId ( )

creates new vert-id not associated with any edge yet Generated from method MR::MeshTopology::addVertId.

Calls MR_MeshTopology_addVertId().

◆ assignFromAnother()

meshlib.MeshTopology meshlib.MeshTopology.assignFromAnother ( meshlib.MeshTopology _other)

Generated from method MR::MeshTopology::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_MeshTopology_AssignFromAnother().

◆ bdEdgeSameLeft()

meshlib.EdgeId meshlib.MeshTopology.bdEdgeSameLeft ( meshlib.EdgeId e,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_bdEdgeSameLeft().

◆ bdEdgeSameOrigin()

meshlib.EdgeId meshlib.MeshTopology.bdEdgeSameOrigin ( meshlib.EdgeId e,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_bdEdgeSameOrigin().

◆ bdEdgeWithLeft()

meshlib.EdgeId meshlib.MeshTopology.bdEdgeWithLeft ( meshlib.FaceId f,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_bdEdgeWithLeft().

◆ bdEdgeWithOrigin()

meshlib.EdgeId meshlib.MeshTopology.bdEdgeWithOrigin ( meshlib.VertId v,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_bdEdgeWithOrigin().

◆ buildFromManifoldTriangles()

boolean meshlib.MeshTopology.buildFromManifoldTriangles ( meshlib.Triangulation t,
meshlib.meshbuilder.BuildSettings settings,
meshlib.bool_output nonManifoldVertsOnly )

constructs topology from given triangles in parallel, if every edge has at most two triangles with opposite directions on it, and the triangles around every vertex form either one closed fan or at most two open fans; returns false and leaves this and settings.region unchanged otherwise; triangles with invalid or repeated vertices are not added, as in MeshBuilder::fromTriangles with the same settings;

Parameters
nonManifoldVertsOnlyif given, set to whether it failed only on vertices having several fans of triangles around, but not just one or two open fans Generated from method MR::MeshTopology::buildFromManifoldTriangles.

Calls MR_MeshTopology_buildFromManifoldTriangles().

◆ buildGridMesh()

boolean meshlib.MeshTopology.buildGridMesh ( meshlib.GridSettings settings,
meshlib.std_function_bool_from_float cb )

constructs triangular grid mesh topology in parallel Generated from method MR::MeshTopology::buildGridMesh.

Calls MR_MeshTopology_buildGridMesh().

◆ checkValidity()

boolean meshlib.MeshTopology.checkValidity ( meshlib.std_function_bool_from_float cb,
java.lang.Boolean allVerts )

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.

Calls MR_MeshTopology_checkValidity().

◆ clear()

void meshlib.MeshTopology.clear ( )

resets to the default-constructed state (including resuming valids updating), keeping the buffers' capacity for reuse Generated from method MR::MeshTopology::clear.

Calls MR_MeshTopology_clear().

◆ collapseEdge()

meshlib.EdgeId meshlib.MeshTopology.collapseEdge ( meshlib.EdgeId e,
meshlib.std_function_void_from_MR_EdgeId_MR_EdgeId onEdgeDel )

collapses given edge in a vertex and deletes 1) faces: left( e ) and right( e ); 2) edges: e, next( e.sym() ), prev( e.sym() ), and optionally next( e ), prev( e ) if their left and right triangles are deleted; 3) all vertices that lost their last edge; calls onEdgeDel for every deleted edge (del) including given (e); if valid (rem) is given then dest( del ) = dest( rem ) and their origins are in different ends of collapsing edge, (rem) shall take the place of (del)

Returns
prev( e ) if it is still valid Generated from method MR::MeshTopology::collapseEdge.

Calls MR_MeshTopology_collapseEdge().

◆ computeNotLoneUndirectedEdges()

long meshlib.MeshTopology.computeNotLoneUndirectedEdges ( )

computes the number of not-lone (valid) undirected edges Generated from method MR::MeshTopology::computeNotLoneUndirectedEdges.

Calls MR_MeshTopology_computeNotLoneUndirectedEdges().

◆ computeValidsFromEdges()

boolean meshlib.MeshTopology.computeValidsFromEdges ( meshlib.std_function_bool_from_float cb)

compute 1) numValidVerts_ and validVerts_ from edgePerVertex_ 2) numValidFaces_ and validFaces_ from edgePerFace_ and activates their auto-update Generated from method MR::MeshTopology::computeValidsFromEdges.

Calls MR_MeshTopology_computeValidsFromEdges().

◆ deleteFace()

void meshlib.MeshTopology.deleteFace ( meshlib.FaceId f,
meshlib.UndirectedEdgeBitSet keepEdges )

deletes the face, also deletes its edges and vertices if they were not shared by other faces and not in keepEdges Generated from method MR::MeshTopology::deleteFace.

Calls MR_MeshTopology_deleteFace().

◆ deleteFaces()

void meshlib.MeshTopology.deleteFaces ( meshlib.FaceBitSet fs,
meshlib.UndirectedEdgeBitSet keepEdges )

deletes the given faces, also deletes their edges and vertices if they were not shared by other faces and not in keepEdges; unlike deleteFacesFindVacant, the edges that had no left and no right face before the call are not touched; few faces (up to 64 or 1/128 of all faces, whichever is larger) are deleted one by one, without a pass over all mesh elements Generated from method MR::MeshTopology::deleteFaces.

Calls MR_MeshTopology_deleteFaces().

◆ deleteFacesFindVacant()

meshlib.VacantElements meshlib.MeshTopology.deleteFacesFindVacant ( meshlib.FaceBitSet fs,
meshlib.UndirectedEdgeBitSet keepEdges )

deletes from this topology: 1) all the given faces, 2) all the vertices, which had incident only deleted faces and no edges from keepEdges, 3) make lone all the edges, which had to the left/right only deleted faces or no faces at all (unlike deleteFaces), except for the edges from keepEdges; return bit sets of all vacant elements in this topology after deletion; it takes a pass over the whole mesh for any number of faces Generated from method MR::MeshTopology::deleteFacesFindVacant.

Calls MR_MeshTopology_deleteFacesFindVacant().

◆ deleteFacesKeepEdges()

void meshlib.MeshTopology.deleteFacesKeepEdges ( meshlib.FaceBitSet fs)

deletes the given valid faces (in parallel), keeping all their edges and vertices, which get no face on that side Generated from method MR::MeshTopology::deleteFacesKeepEdges.

Calls MR_MeshTopology_deleteFacesKeepEdges().

◆ dest()

meshlib.VertId meshlib.MeshTopology.dest ( meshlib.EdgeId he)

returns destination vertex of half-edge Generated from method MR::MeshTopology::dest.

Calls MR_MeshTopology_dest().

◆ edgeCapacity()

long meshlib.MeshTopology.edgeCapacity ( )

returns the number of allocated edge records Generated from method MR::MeshTopology::edgeCapacity.

Calls MR_MeshTopology_edgeCapacity().

◆ edgePerFace()

meshlib.Vector_MR_EdgeId_MR_FaceId meshlib.MeshTopology.edgePerFace ( )

for all valid faces this vector contains an edge with that face at left Generated from method MR::MeshTopology::edgePerFace.

Calls MR_MeshTopology_edgePerFace().

◆ edgePerVertex()

meshlib.Vector_MR_EdgeId_MR_VertId meshlib.MeshTopology.edgePerVertex ( )

for all valid vertices this vector contains an edge with the origin there Generated from method MR::MeshTopology::edgePerVertex.

Calls MR_MeshTopology_edgePerVertex().

◆ edgeReserve()

void meshlib.MeshTopology.edgeReserve ( long newCapacity)

sets the capacity of half-edges vector Generated from method MR::MeshTopology::edgeReserve.

Calls MR_MeshTopology_edgeReserve().

◆ edgeSize()

long meshlib.MeshTopology.edgeSize ( )

returns the number of half-edge records including lone ones Generated from method MR::MeshTopology::edgeSize.

Calls MR_MeshTopology_edgeSize().

◆ edgeWithLeft()

meshlib.EdgeId meshlib.MeshTopology.edgeWithLeft ( meshlib.FaceId a)

returns valid edge if given vertex is present in the mesh Generated from method MR::MeshTopology::edgeWithLeft.

Calls MR_MeshTopology_edgeWithLeft().

◆ edgeWithOrg()

meshlib.EdgeId meshlib.MeshTopology.edgeWithOrg ( meshlib.VertId a)

returns valid edge if given vertex is present in the mesh Generated from method MR::MeshTopology::edgeWithOrg.

Calls MR_MeshTopology_edgeWithOrg().

◆ excludeLoneEdges()

void meshlib.MeshTopology.excludeLoneEdges ( meshlib.UndirectedEdgeBitSet edges)

remove all lone edges from given set Generated from method MR::MeshTopology::excludeLoneEdges.

Calls MR_MeshTopology_excludeLoneEdges().

◆ faceCapacity()

long meshlib.MeshTopology.faceCapacity ( )

returns the number of allocated face records Generated from method MR::MeshTopology::faceCapacity.

Calls MR_MeshTopology_faceCapacity().

◆ faceReserve()

void meshlib.MeshTopology.faceReserve ( long newCapacity)

sets the capacity of faces vector Generated from method MR::MeshTopology::faceReserve.

Calls MR_MeshTopology_faceReserve().

◆ faceResize()

void meshlib.MeshTopology.faceResize ( long newSize)

explicitly increases the size of faces vector Generated from method MR::MeshTopology::faceResize.

Calls MR_MeshTopology_faceResize().

◆ faceResizeWithReserve()

void meshlib.MeshTopology.faceResizeWithReserve ( long newSize)

explicitly increases the size of faces vector, doubling the current capacity if it was not enough Generated from method MR::MeshTopology::faceResizeWithReserve.

Calls MR_MeshTopology_faceResizeWithReserve().

◆ faceSize()

long meshlib.MeshTopology.faceSize ( )

returns the number of face records including invalid ones Generated from method MR::MeshTopology::faceSize.

Calls MR_MeshTopology_faceSize().

◆ findBdFaces()

meshlib.FaceBitSet meshlib.MeshTopology.findBdFaces ( meshlib.FaceBitSet region)

returns all faces for which isBdFace(f, region) is true Generated from method MR::MeshTopology::findBdFaces.

Calls MR_MeshTopology_findBdFaces().

◆ findBdVerts()

meshlib.VertBitSet meshlib.MeshTopology.findBdVerts ( meshlib.FaceBitSet region,
meshlib.VertBitSet test )

returns all (test) vertices for which isBdVertex(v, region) is true Generated from method MR::MeshTopology::findBdVerts.

Calls MR_MeshTopology_findBdVerts().

◆ findEdge()

meshlib.EdgeId meshlib.MeshTopology.findEdge ( meshlib.VertId o,
meshlib.VertId d )

finds and returns edge from o to d in the mesh; returns invalid edge otherwise Generated from method MR::MeshTopology::findEdge.

Calls MR_MeshTopology_findEdge().

◆ findHoleRepresentiveEdges()

meshlib.std_vector_MR_EdgeId meshlib.MeshTopology.findHoleRepresentiveEdges ( meshlib.FaceBitSet region)

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.

Calls MR_MeshTopology_findHoleRepresentiveEdges().

◆ findLeftBdEdges()

meshlib.EdgeBitSet meshlib.MeshTopology.findLeftBdEdges ( meshlib.FaceBitSet region,
meshlib.EdgeBitSet test )

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.

Calls MR_MeshTopology_findLeftBdEdges().

◆ findNotLoneUndirectedEdges()

meshlib.UndirectedEdgeBitSet meshlib.MeshTopology.findNotLoneUndirectedEdges ( )

finds and returns all not-lone (valid) undirected edges Generated from method MR::MeshTopology::findNotLoneUndirectedEdges.

Calls MR_MeshTopology_findNotLoneUndirectedEdges().

◆ findNumHoles()

int meshlib.MeshTopology.findNumHoles ( meshlib.EdgeBitSet holeRepresentativeEdges)

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.

Calls MR_MeshTopology_findNumHoles().

◆ flip() [1/2]

void meshlib.MeshTopology.flip ( meshlib.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.

Calls MR_MeshTopology_flip_MR_FaceBitSet().

◆ flip() [2/2]

void meshlib.MeshTopology.flip ( meshlib.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.

Calls MR_MeshTopology_flip_MR_VertBitSet().

◆ flipEdge()

void meshlib.MeshTopology.flipEdge ( meshlib.EdgeId e)

given the edge with left and right triangular faces, which form together a quadrangle, rotates the edge counter-clockwise inside the quadrangle Generated from method MR::MeshTopology::flipEdge.

Calls MR_MeshTopology_flipEdge().

◆ flipOrientation()

void meshlib.MeshTopology.flipOrientation ( meshlib.UndirectedEdgeBitSet fullComponents)

flip orientation (normals) of

  • all mesh elements if fullComponents is nullptr, or
  • given mesh components in fullComponents. The behavior is undefined if fullComponents is given but there are connected components with some edges included and not-included there. Generated from method MR::MeshTopology::flipOrientation.

Calls MR_MeshTopology_flipOrientation().

◆ fromSameLeftRing()

boolean meshlib.MeshTopology.fromSameLeftRing ( meshlib.EdgeId a,
meshlib.EdgeId b )

returns true if a and b are both from the same left face ring Generated from method MR::MeshTopology::fromSameLeftRing.

Calls MR_MeshTopology_fromSameLeftRing().

◆ fromSameOriginRing()

boolean meshlib.MeshTopology.fromSameOriginRing ( meshlib.EdgeId a,
meshlib.EdgeId b )

returns true if a and b are both from the same origin ring Generated from method MR::MeshTopology::fromSameOriginRing.

Calls MR_MeshTopology_fromSameOriginRing().

◆ getAllTriVerts()

meshlib.std_vector_std_array_MR_VertId_3 meshlib.MeshTopology.getAllTriVerts ( )

returns three vertex ids for valid triangles, invalid triangles are skipped Generated from method MR::MeshTopology::getAllTriVerts.

Calls MR_MeshTopology_getAllTriVerts().

◆ getFaceDegree()

int meshlib.MeshTopology.getFaceDegree ( meshlib.FaceId f)

returns the number of edges around the given face: 3 for triangular faces, ... Generated from method MR::MeshTopology::getFaceDegree.

Calls MR_MeshTopology_getFaceDegree().

◆ getFaceIds()

meshlib.FaceBitSet meshlib.MeshTopology.getFaceIds ( meshlib.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.

Calls MR_MeshTopology_getFaceIds().

◆ getLeftDegree()

int meshlib.MeshTopology.getLeftDegree ( meshlib.EdgeId a)

returns the number of edges around the left face: 3 for triangular faces, ... Generated from method MR::MeshTopology::getLeftDegree.

Calls MR_MeshTopology_getLeftDegree().

◆ getLeftRing()

meshlib.std_vector_MR_EdgeId meshlib.MeshTopology.getLeftRing ( meshlib.EdgeId e)

returns full edge-loop of left face from (e) starting from (e) itself Generated from method MR::MeshTopology::getLeftRing.

Calls MR_MeshTopology_getLeftRing().

◆ getLeftRings()

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.

Calls MR_MeshTopology_getLeftRings().

◆ getLeftTriEdges()

void meshlib.MeshTopology.getLeftTriEdges ( meshlib.EdgeId e0,
meshlib.EdgeId e1,
meshlib.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.

Calls MR_MeshTopology_getLeftTriEdges().

◆ getLeftTriVerts() [1/3]

meshlib.std_array_MR_VertId_3 meshlib.MeshTopology.getLeftTriVerts ( meshlib.EdgeId a)

Generated from method MR::MeshTopology::getLeftTriVerts.

Calls MR_MeshTopology_getLeftTriVerts().

◆ getLeftTriVerts() [2/3]

void meshlib.MeshTopology.getLeftTriVerts ( meshlib.EdgeId a,
meshlib.std_array_MR_VertId_3 v )

Generated from method MR::MeshTopology::getLeftTriVerts.

Calls MR_MeshTopology_getLeftTriVerts_outArray().

◆ getLeftTriVerts() [3/3]

void meshlib.MeshTopology.getLeftTriVerts ( meshlib.EdgeId a,
meshlib.VertId v0,
meshlib.VertId v1,
meshlib.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.

Calls MR_MeshTopology_getLeftTriVerts_outVerts().

◆ getOrgDegree()

int meshlib.MeshTopology.getOrgDegree ( meshlib.EdgeId a)

returns the number of edges around the origin vertex, returns 1 for lone edges Generated from method MR::MeshTopology::getOrgDegree.

Calls MR_MeshTopology_getOrgDegree().

◆ getPathLeftFaces()

meshlib.FaceBitSet meshlib.MeshTopology.getPathLeftFaces ( meshlib.std_vector_MR_EdgeId path)

returns all valid left faces of path edges Generated from method MR::MeshTopology::getPathLeftFaces.

Calls MR_MeshTopology_getPathLeftFaces().

◆ getPathRightFaces()

meshlib.FaceBitSet meshlib.MeshTopology.getPathRightFaces ( meshlib.std_vector_MR_EdgeId path)

returns all valid right faces of path edges Generated from method MR::MeshTopology::getPathRightFaces.

Calls MR_MeshTopology_getPathRightFaces().

◆ getPathVertices()

meshlib.VertBitSet meshlib.MeshTopology.getPathVertices ( meshlib.std_vector_MR_EdgeId path)

returns all vertices incident to path edges Generated from method MR::MeshTopology::getPathVertices.

Calls MR_MeshTopology_getPathVertices().

◆ getTriangulation()

meshlib.Triangulation meshlib.MeshTopology.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.

Calls MR_MeshTopology_getTriangulation().

◆ getTriEdges()

void meshlib.MeshTopology.getTriEdges ( meshlib.FaceId f,
meshlib.EdgeId e0,
meshlib.EdgeId e1,
meshlib.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.

Calls MR_MeshTopology_getTriEdges().

◆ getTriVerts() [1/3]

meshlib.std_array_MR_VertId_3 meshlib.MeshTopology.getTriVerts ( meshlib.FaceId f)

Generated from method MR::MeshTopology::getTriVerts.

Calls MR_MeshTopology_getTriVerts_1().

◆ getTriVerts() [2/3]

void meshlib.MeshTopology.getTriVerts ( meshlib.FaceId f,
meshlib.std_array_MR_VertId_3 v )

Generated from method MR::MeshTopology::getTriVerts.

Calls MR_MeshTopology_getTriVerts_2().

◆ getTriVerts() [3/3]

void meshlib.MeshTopology.getTriVerts ( meshlib.FaceId f,
meshlib.VertId v0,
meshlib.VertId v1,
meshlib.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.

Calls MR_MeshTopology_getTriVerts_4().

◆ getValidFaces()

meshlib.FaceBitSet meshlib.MeshTopology.getValidFaces ( )

returns cached set of all valid faces Generated from method MR::MeshTopology::getValidFaces.

Calls MR_MeshTopology_getValidFaces().

◆ getValidVerts()

meshlib.VertBitSet meshlib.MeshTopology.getValidVerts ( )

returns cached set of all valid vertices Generated from method MR::MeshTopology::getValidVerts.

Calls MR_MeshTopology_getValidVerts().

◆ getVertDegree()

int meshlib.MeshTopology.getVertDegree ( meshlib.VertId v)

returns the number of edges around the given vertex Generated from method MR::MeshTopology::getVertDegree.

Calls MR_MeshTopology_getVertDegree().

◆ getVertIds()

meshlib.VertBitSet meshlib.MeshTopology.getVertIds ( meshlib.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.

Calls MR_MeshTopology_getVertIds().

◆ hasEdge()

boolean meshlib.MeshTopology.hasEdge ( meshlib.EdgeId e)

returns true if given edge is within valid range and not-lone Generated from method MR::MeshTopology::hasEdge.

Calls MR_MeshTopology_hasEdge().

◆ hasFace()

boolean meshlib.MeshTopology.hasFace ( meshlib.FaceId a)

returns true if given face is present in the mesh Generated from method MR::MeshTopology::hasFace.

Calls MR_MeshTopology_hasFace().

◆ hasVert()

boolean meshlib.MeshTopology.hasVert ( meshlib.VertId a)

returns true if given vertex is present in the mesh Generated from method MR::MeshTopology::hasVert.

Calls MR_MeshTopology_hasVert().

◆ heapBytes()

long meshlib.MeshTopology.heapBytes ( )

returns the amount of memory this object occupies on heap Generated from method MR::MeshTopology::heapBytes.

Calls MR_MeshTopology_heapBytes().

◆ isBdEdge()

boolean meshlib.MeshTopology.isBdEdge ( meshlib.EdgeId e,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_isBdEdge().

◆ isBdFace()

boolean meshlib.MeshTopology.isBdFace ( meshlib.FaceId f,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_isBdFace().

◆ isBdVertex()

boolean meshlib.MeshTopology.isBdVertex ( meshlib.VertId v,
meshlib.FaceBitSet region )

returns true if given vertex is on (region) boundary Generated from method MR::MeshTopology::isBdVertex.

Calls MR_MeshTopology_isBdVertex().

◆ isBdVertexInOrg()

boolean meshlib.MeshTopology.isBdVertexInOrg ( meshlib.EdgeId e,
meshlib.FaceBitSet region )

returns true if edge's origin is on (region) boundary Generated from method MR::MeshTopology::isBdVertexInOrg.

Calls MR_MeshTopology_isBdVertexInOrg().

◆ isClosed()

boolean meshlib.MeshTopology.isClosed ( meshlib.FaceBitSet region)

returns true if the mesh (region) does not have any neighboring holes Generated from method MR::MeshTopology::isClosed.

Calls MR_MeshTopology_isClosed().

◆ isInnerEdge()

boolean meshlib.MeshTopology.isInnerEdge ( meshlib.EdgeId e,
meshlib.FaceBitSet region )

return true if given edge is inner for given region (or for whole mesh if region is nullptr) Generated from method MR::MeshTopology::isInnerEdge.

Calls MR_MeshTopology_isInnerEdge().

◆ isInnerOrBdEdge()

boolean meshlib.MeshTopology.isInnerOrBdEdge ( meshlib.EdgeId e,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_isInnerOrBdEdge().

◆ isInnerOrBdVertex()

boolean meshlib.MeshTopology.isInnerOrBdVertex ( meshlib.VertId v,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_isInnerOrBdVertex().

◆ isLeftBdEdge()

boolean meshlib.MeshTopology.isLeftBdEdge ( meshlib.EdgeId e,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_isLeftBdEdge().

◆ isLeftBdFace()

boolean meshlib.MeshTopology.isLeftBdFace ( meshlib.EdgeId e,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_isLeftBdFace().

◆ isLeftInRegion()

boolean meshlib.MeshTopology.isLeftInRegion ( meshlib.EdgeId e,
meshlib.FaceBitSet region )

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.

Calls MR_MeshTopology_isLeftInRegion().

◆ isLeftQuad()

boolean meshlib.MeshTopology.isLeftQuad ( meshlib.EdgeId a)

returns true if the cell to the left of a is quadrangular Generated from method MR::MeshTopology::isLeftQuad.

Calls MR_MeshTopology_isLeftQuad().

◆ isLeftTri()

boolean meshlib.MeshTopology.isLeftTri ( meshlib.EdgeId a)

returns true if the cell to the left of a is triangular Generated from method MR::MeshTopology::isLeftTri.

Calls MR_MeshTopology_isLeftTri().

◆ isLoneEdge()

boolean meshlib.MeshTopology.isLoneEdge ( meshlib.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.

Calls MR_MeshTopology_isLoneEdge().

◆ isOrgInnerAndHasDegree()

boolean meshlib.MeshTopology.isOrgInnerAndHasDegree ( meshlib.EdgeId a,
int d )

returns true if the origin of given edge is inner to the mesh (no boundary passes via it), and has the given number of incident edges (including input one) Generated from method MR::MeshTopology::isOrgInnerAndHasDegree.

Calls MR_MeshTopology_isOrgInnerAndHasDegree().

◆ isTriVert()

boolean meshlib.MeshTopology.isTriVert ( meshlib.FaceId f,
meshlib.VertId v )

return true if triangular face (f) has (v) as one of its vertices Generated from method MR::MeshTopology::isTriVert.

Calls MR_MeshTopology_isTriVert().

◆ isVertInnerAndHasDegree()

boolean meshlib.MeshTopology.isVertInnerAndHasDegree ( meshlib.VertId v,
int d )

returns true if the given vertex is inner to the mesh (no boundary passes via it), and has the given number of incident edges Generated from method MR::MeshTopology::isVertInnerAndHasDegree.

Calls MR_MeshTopology_isVertInnerAndHasDegree().

◆ lastNotLoneEdge()

meshlib.EdgeId meshlib.MeshTopology.lastNotLoneEdge ( )

returns last not lone edge id, or invalid id if no such edge exists Generated from method MR::MeshTopology::lastNotLoneEdge.

Calls MR_MeshTopology_lastNotLoneEdge().

◆ lastNotLoneUndirectedEdge()

meshlib.UndirectedEdgeId meshlib.MeshTopology.lastNotLoneUndirectedEdge ( )

returns last not lone undirected edge id, or invalid id if no such edge exists Generated from method MR::MeshTopology::lastNotLoneUndirectedEdge.

Calls MR_MeshTopology_lastNotLoneUndirectedEdge().

◆ lastValidFace()

meshlib.FaceId meshlib.MeshTopology.lastValidFace ( )

returns last valid face id, or invalid id if no single valid face exists Generated from method MR::MeshTopology::lastValidFace.

Calls MR_MeshTopology_lastValidFace().

◆ lastValidVert()

meshlib.VertId meshlib.MeshTopology.lastValidVert ( )

returns last valid vertex id, or invalid id if no single valid vertex exists Generated from method MR::MeshTopology::lastValidVert.

Calls MR_MeshTopology_lastValidVert().

◆ left()

meshlib.FaceId meshlib.MeshTopology.left ( meshlib.EdgeId he)

returns left face of half-edge Generated from method MR::MeshTopology::left.

Calls MR_MeshTopology_left().

◆ makeEdge()

meshlib.EdgeId meshlib.MeshTopology.makeEdge ( )

creates an edge not associated with any vertex or face Generated from method MR::MeshTopology::makeEdge.

Calls MR_MeshTopology_makeEdge().

◆ makeEdges()

meshlib.EdgeId meshlib.MeshTopology.makeEdges ( int num)

creates given number of edges not associated with any vertex or face, returns the first of them; edge i is the first + 2 * i, the same as from makeEdge() called num times Generated from method MR::MeshTopology::makeEdges.

Calls MR_MeshTopology_makeEdges().

◆ next()

meshlib.EdgeId meshlib.MeshTopology.next ( meshlib.EdgeId he)

next (counter clock wise) half-edge in the origin ring Generated from method MR::MeshTopology::next.

Calls MR_MeshTopology_next().

◆ nextLeftBd()

meshlib.EdgeId meshlib.MeshTopology.nextLeftBd ( meshlib.EdgeId e,
meshlib.FaceBitSet region,
meshlib.Turn turn )

given a (region) boundary edge with no right face in given region, returns next boundary edge for the same region: dest(e)==org(res);

Parameters
turndetermines the selection of next boundary edge in case of several alternatives Generated from method MR::MeshTopology::nextLeftBd.

Calls MR_MeshTopology_nextLeftBd().

◆ numValidFaces()

int meshlib.MeshTopology.numValidFaces ( )

returns the number of valid faces Generated from method MR::MeshTopology::numValidFaces.

Calls MR_MeshTopology_numValidFaces().

◆ numValidVerts()

int meshlib.MeshTopology.numValidVerts ( )

returns the number of valid vertices Generated from method MR::MeshTopology::numValidVerts.

Calls MR_MeshTopology_numValidVerts().

◆ opEqual()

boolean meshlib.MeshTopology.opEqual ( meshlib.MeshTopology b)

compare that two topologies are exactly the same Generated from method MR::MeshTopology::operator==.

Calls MR_equal_MR_MeshTopology().

◆ opNotEqual()

boolean meshlib.MeshTopology.opNotEqual ( meshlib.MeshTopology b)

compare that two topologies are exactly the same Generated from method MR::MeshTopology::operator!=.

Calls MR_not_equal_MR_MeshTopology().

◆ org()

meshlib.VertId meshlib.MeshTopology.org ( meshlib.EdgeId he)

returns origin vertex of half-edge Generated from method MR::MeshTopology::org.

Calls MR_MeshTopology_org().

◆ pack() [1/2]

void meshlib.MeshTopology.pack ( meshlib.FaceMap outFmap,
meshlib.VertMap outVmap,
meshlib.WholeEdgeMap outEmap,
java.lang.Boolean rearrangeTriangles )

tightly packs all arrays eliminating lone edges and invalid faces and vertices

Parameters
outFmap,outVmap,outEmapif given returns mappings: old.id -> new.id;
rearrangeTrianglesif true then calls rotateTriangles() and selects the order of triangles according to the order of their vertices Generated from method MR::MeshTopology::pack.

Calls MR_MeshTopology_pack().

◆ pack() [2/2]

void meshlib.MeshTopology.pack ( meshlib.PackMapping map)

tightly packs all arrays eliminating lone edges and invalid faces and vertices; reorder all faces, vertices and edges according to given maps, each containing old id -> new id mapping Generated from method MR::MeshTopology::pack.

Calls MR_MeshTopology_pack_mapping().

◆ packMinMem()

void meshlib.MeshTopology.packMinMem ( meshlib.PackMapping map)

tightly packs all arrays eliminating lone edges and invalid faces and vertices; reorder all faces, vertices and edges according to given maps, each containing old id -> new id mapping; unlike pack method, this method allocates minimal amount of memory for its operation but works much slower Generated from method MR::MeshTopology::packMinMem.

Calls MR_MeshTopology_packMinMem().

◆ preferEdges()

void meshlib.MeshTopology.preferEdges ( meshlib.UndirectedEdgeBitSet stableEdges)

for incident vertices and faces of given edges, remember one of them as edgeWithOrg and edgeWithLeft; this is important in parallel algorithms where other edges may change but stable ones will survive Generated from method MR::MeshTopology::preferEdges.

Calls MR_MeshTopology_preferEdges().

◆ prev()

meshlib.EdgeId meshlib.MeshTopology.prev ( meshlib.EdgeId he)

previous (clock wise) half-edge in the origin ring Generated from method MR::MeshTopology::prev.

Calls MR_MeshTopology_prev().

◆ prevLeftBd()

meshlib.EdgeId meshlib.MeshTopology.prevLeftBd ( meshlib.EdgeId e,
meshlib.FaceBitSet region,
meshlib.Turn turn )

given a (region) boundary edge with no right face in given region, returns previous boundary edge for the same region; dest(res)==org(e);

Parameters
turndetermines the selection of previous boundary edge in case of several alternatives, note the turn is from previous (returned) edge to the current edge Generated from method MR::MeshTopology::prevLeftBd.

Calls MR_MeshTopology_prevLeftBd().

◆ read()

void meshlib.MeshTopology.read ( meshlib.std_istream s,
meshlib.std_function_bool_from_float callback )

loads from binary stream

Returns
text of error if any Generated from method MR::MeshTopology::read.

Calls MR_MeshTopology_read(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ resizeBeforeParallelAdd()

void meshlib.MeshTopology.resizeBeforeParallelAdd ( long edgeSize,
long vertSize,
long faceSize )

These function are for parallel mesh creation from different threads. If you are not sure, do not use them.

resizes all internal vectors and sets the numbers of valid elements in preparation for addPackedPart; edges are resized without initialization (so the user must initialize them using addPackedPart) Generated from method MR::MeshTopology::resizeBeforeParallelAdd.

Calls MR_MeshTopology_resizeBeforeParallelAdd().

◆ right()

meshlib.FaceId meshlib.MeshTopology.right ( meshlib.EdgeId he)

returns right face of half-edge Generated from method MR::MeshTopology::right.

Calls MR_MeshTopology_right().

◆ rotateTriangles()

void meshlib.MeshTopology.rotateTriangles ( )

for each triangle selects edgeWithLeft with minimal origin vertex Generated from method MR::MeshTopology::rotateTriangles.

Calls MR_MeshTopology_rotateTriangles().

◆ setLeft()

void meshlib.MeshTopology.setLeft ( meshlib.EdgeId a,
meshlib.FaceId f )

sets new left face to the full left ring including this edge; edgePerFace_ table is updated accordingly Generated from method MR::MeshTopology::setLeft.

Calls MR_MeshTopology_setLeft().

◆ setOrg()

void meshlib.MeshTopology.setOrg ( meshlib.EdgeId a,
meshlib.VertId v )

sets new origin to the full origin ring including this edge; edgePerVertex_ table is updated accordingly Generated from method MR::MeshTopology::setOrg.

Calls MR_MeshTopology_setOrg().

◆ sharedEdge()

meshlib.EdgeId meshlib.MeshTopology.sharedEdge ( meshlib.FaceId l,
meshlib.FaceId r )

if two valid faces share the same edge then it is found and returned Generated from method MR::MeshTopology::sharedEdge.

Calls MR_MeshTopology_sharedEdge().

◆ sharedFace()

meshlib.FaceId meshlib.MeshTopology.sharedFace ( meshlib.EdgeId a,
meshlib.EdgeId b )

if two valid edges belong to same valid face then it is found and returned Generated from method MR::MeshTopology::sharedFace.

Calls MR_MeshTopology_sharedFace().

◆ sharedVertInOrg() [1/2]

meshlib.EdgeId meshlib.MeshTopology.sharedVertInOrg ( meshlib.EdgeId a,
meshlib.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.

Calls MR_MeshTopology_sharedVertInOrg_MR_EdgeId().

◆ sharedVertInOrg() [2/2]

meshlib.EdgeId meshlib.MeshTopology.sharedVertInOrg ( meshlib.FaceId l,
meshlib.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.

Calls MR_MeshTopology_sharedVertInOrg_MR_FaceId().

◆ shrinkToFit()

void meshlib.MeshTopology.shrinkToFit ( )

requests the removal of unused capacity Generated from method MR::MeshTopology::shrinkToFit.

Calls MR_MeshTopology_shrinkToFit().

◆ splice()

void meshlib.MeshTopology.splice ( meshlib.EdgeId a,
meshlib.EdgeId b )

given two half edges do either of two: 1) if a and b were from distinct rings, puts them in one ring; 2) if a and b were from the same ring, puts them in separate rings; the cut in rings in both cases is made after a and b Generated from method MR::MeshTopology::splice.

Calls MR_MeshTopology_splice().

◆ splitEdge()

split given edge on two parts: dest(returned-edge) = org(e) - newly created vertex, org(returned-edge) = org(e-before-split), dest(e) = dest(e-before-split)

left and right faces of given edge if valid are also subdivided on two parts each; the split edge will keep both face IDs and their degrees, and the new edge will have new face IDs and new faces are triangular; if left or right faces of the original edge were in the region, then include new parts of these faces in the region

Parameters
new2Oldreceive mapping from newly appeared triangle to its original triangle (part to full) Generated from method MR::MeshTopology::splitEdge.

Calls MR_MeshTopology_splitEdge().

◆ splitFace()

split given triangle on three triangles, introducing new vertex (which is returned) inside original triangle and connecting it to its vertices

if region is given, then it must include (f) and new faces will be added there as well

Parameters
new2Oldreceive mapping from newly appeared triangle to its original triangle (part to full) Generated from method MR::MeshTopology::splitFace.

Calls MR_MeshTopology_splitFace().

◆ stopUpdatingValids()

void meshlib.MeshTopology.stopUpdatingValids ( )

stops updating validVerts(), validFaces(), numValidVerts(), numValidFaces() for parallel processing of mesh parts Generated from method MR::MeshTopology::stopUpdatingValids.

Calls MR_MeshTopology_stopUpdatingValids().

◆ undirectedEdgeCapacity()

long meshlib.MeshTopology.undirectedEdgeCapacity ( )

returns the number of allocated undirected edges (pairs of half-edges) Generated from method MR::MeshTopology::undirectedEdgeCapacity.

Calls MR_MeshTopology_undirectedEdgeCapacity().

◆ undirectedEdgeSize()

long meshlib.MeshTopology.undirectedEdgeSize ( )

returns the number of undirected edges (pairs of half-edges) including lone ones Generated from method MR::MeshTopology::undirectedEdgeSize.

Calls MR_MeshTopology_undirectedEdgeSize().

◆ updatingValids()

boolean meshlib.MeshTopology.updatingValids ( )

returns whether the methods validVerts(), validFaces(), numValidVerts(), numValidFaces() can be called Generated from method MR::MeshTopology::updatingValids.

Calls MR_MeshTopology_updatingValids().

◆ vertCapacity()

long meshlib.MeshTopology.vertCapacity ( )

returns the number of allocated vert records Generated from method MR::MeshTopology::vertCapacity.

Calls MR_MeshTopology_vertCapacity().

◆ vertReserve()

void meshlib.MeshTopology.vertReserve ( long newCapacity)

sets the capacity of vertices vector Generated from method MR::MeshTopology::vertReserve.

Calls MR_MeshTopology_vertReserve().

◆ vertResize()

void meshlib.MeshTopology.vertResize ( long newSize)

explicitly increases the size of vertices vector Generated from method MR::MeshTopology::vertResize.

Calls MR_MeshTopology_vertResize().

◆ vertResizeWithReserve()

void meshlib.MeshTopology.vertResizeWithReserve ( long newSize)

explicitly increases the size of vertices vector, doubling the current capacity if it was not enough Generated from method MR::MeshTopology::vertResizeWithReserve.

Calls MR_MeshTopology_vertResizeWithReserve().

◆ vertSize()

long meshlib.MeshTopology.vertSize ( )

returns the number of vertex records including invalid ones Generated from method MR::MeshTopology::vertSize.

Calls MR_MeshTopology_vertSize().

◆ write()

void meshlib.MeshTopology.write ( meshlib.std_ostream s)

saves in binary stream Generated from method MR::MeshTopology::write.

Calls MR_MeshTopology_write().


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