MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.MeshBuilder.VertexIdentifier Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, MeshBuilder.VertexIdentifier arg0)
 
None addTriangles (self, std_vector_std_array_Vector3_float_3ul buffer)
 
int numTris (self)
 
None reserve (self, int numTris)
 
VertCoords takePoints (self)
 
Triangulation takeTriangulation (self)
 

Detailed Description

Generated from:  MR::MeshBuilder::VertexIdentifier

this class is responsible for giving a unique id to each vertex with distinct coordinates
NOTE: the points are considered non-identical if they have the same values but have zero values with different signs
(e.g. (0; 0; 1) and (-0; 0; 1))
use `Vector3::unsignZeroValues` method to get rid of signed zero values if you're unsure of their absence

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.MeshBuilder.VertexIdentifier.__init__ ( self)
Implicit default constructor.

◆ __init__() [2/2]

None meshlib.mrmeshpy.MeshBuilder.VertexIdentifier.__init__ ( self,
MeshBuilder.VertexIdentifier arg0 )
Implicit copy constructor.

Member Function Documentation

◆ addTriangles()

None meshlib.mrmeshpy.MeshBuilder.VertexIdentifier.addTriangles ( self,
std_vector_std_array_Vector3_float_3ul buffer )
identifies vertices from a chunk of triangles

◆ numTris()

int meshlib.mrmeshpy.MeshBuilder.VertexIdentifier.numTris ( self)
returns the number of triangles added so far

◆ reserve()

None meshlib.mrmeshpy.MeshBuilder.VertexIdentifier.reserve ( self,
int numTris )
prepare identification of vertices from given this number of triangles

◆ takePoints()

VertCoords meshlib.mrmeshpy.MeshBuilder.VertexIdentifier.takePoints ( self)
obtains coordinates of unique points in the order of vertex ids

◆ takeTriangulation()

Triangulation meshlib.mrmeshpy.MeshBuilder.VertexIdentifier.takeTriangulation ( self)
obtains triangulation with vertex ids

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