MeshLib
 
Loading...
Searching...
No Matches
MR::MeshBuilder::VertexIdentifier Class Reference

#include <MRIdentifyVertices.h>

Public Member Functions

MRMESH_API void reserve (size_t numTris)
 prepare identification of vertices from given this number of triangles
 
MRMESH_API void addTriangles (const std::vector< Triangle3f > &buffer)
 identifies vertices from a chunk of triangles
 
size_t numTris () const
 returns the number of triangles added so far
 
Triangulation takeTriangulation ()
 obtains triangulation with vertex ids
 
VertCoords takePoints ()
 obtains coordinates of unique points in the order of vertex ids
 

Detailed Description

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

Member Function Documentation

◆ addTriangles()

MRMESH_API void MR::MeshBuilder::VertexIdentifier::addTriangles ( const std::vector< Triangle3f > & buffer)

identifies vertices from a chunk of triangles

◆ numTris()

size_t MR::MeshBuilder::VertexIdentifier::numTris ( ) const
inline

returns the number of triangles added so far

◆ reserve()

MRMESH_API void MR::MeshBuilder::VertexIdentifier::reserve ( size_t numTris)

prepare identification of vertices from given this number of triangles

◆ takePoints()

VertCoords MR::MeshBuilder::VertexIdentifier::takePoints ( )
inline

obtains coordinates of unique points in the order of vertex ids

◆ takeTriangulation()

Triangulation MR::MeshBuilder::VertexIdentifier::takeTriangulation ( )
inline

obtains triangulation with vertex ids


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