MeshLib
 
Loading...
Searching...
No Matches
MR::VertRenumber Class Reference

maps valid points to packed sequential indices More...

#include <MRSaveSettings.h>

Public Member Functions

MRMESH_API VertRenumber (const VertBitSet &validVerts, bool saveValidOnly)
 prepares the mapping
 
bool saveValidOnly () const
 
int sizeVerts () const
 return the total number of vertices to be saved
 
int operator() (VertId v) const
 return packed index (if saveValidOnly = true) or same index (if saveValidOnly = false)
 

Detailed Description

maps valid points to packed sequential indices

Constructor & Destructor Documentation

◆ VertRenumber()

MRMESH_API MR::VertRenumber::VertRenumber ( const VertBitSet & validVerts,
bool saveValidOnly )

prepares the mapping

Member Function Documentation

◆ operator()()

int MR::VertRenumber::operator() ( VertId v) const
inline

return packed index (if saveValidOnly = true) or same index (if saveValidOnly = false)

◆ saveValidOnly()

bool MR::VertRenumber::saveValidOnly ( ) const
inline

◆ sizeVerts()

int MR::VertRenumber::sizeVerts ( ) const
inline

return the total number of vertices to be saved


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