MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::MeshComponents::ComponentsFaces Struct Reference

faces of all components in one flat array More...

#include <MRMesh/MRMeshComponents.h>

Public Member Functions

void setComponentBits (RegionId compId, FaceBitSet &bs) const
 sets in given bit set the bits of all faces of component compId; bs must be large enough to contain them

Public Attributes

std::vector< FaceId > faces
Vector< int, RegionId > offsets
 the number of components + 1 elements, offsets.back() == faces.size()

Detailed Description

faces of all components in one flat array

Member Function Documentation

◆ setComponentBits()

void MR::MeshComponents::ComponentsFaces::setComponentBits ( RegionId compId,
FaceBitSet & bs ) const

sets in given bit set the bits of all faces of component compId; bs must be large enough to contain them

Member Data Documentation

◆ faces

std::vector<FaceId> MR::MeshComponents::ComponentsFaces::faces

faces of component 0, then faces of component 1, ...; the faces of component i are faces[offsets[i]], ..., faces[offsets[i+1]-1] in increasing order

◆ offsets

Vector<int, RegionId> MR::MeshComponents::ComponentsFaces::offsets

the number of components + 1 elements, offsets.back() == faces.size()


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