MeshLib C++ Docs
Loading...
Searching...
No Matches
MRExpandShrink.h File Reference
#include "MRMeshFwd.h"
#include "MRId.h"

Go to the source code of this file.

Functions

MR_EXTERN_C_BEGIN MRMESHC_API void mrExpandFaceRegion (const MRMeshTopology *top, MRFaceBitSet *region, int hops)
 adds to the region all faces within given number of hops (stars) from the initial region boundary
 
MRMESHC_API MRFaceBitSetmrExpandFaceRegionFromFace (const MRMeshTopology *top, MRFaceId face, int hops)
 returns the region of all faces within given number of hops (stars) from the initial face
 
MRMESHC_API void mrExpandVertRegion (const MRMeshTopology *top, MRVertBitSet *region, int hops)
 
MRMESHC_API MRVertBitSetmrExpandVertRegionFromVert (const MRMeshTopology *top, MRVertId vert, int hops)
 returns the region of all vertices within given number of hops (stars) from the initial vertex
 
MRMESHC_API void mrShrinkFaceRegion (const MRMeshTopology *top, MRFaceBitSet *region, int hops)
 removes from the region all faces within given number of hops (stars) from the initial region boundary
 
MRMESHC_API void mrShrinkVertRegion (const MRMeshTopology *top, MRVertBitSet *region, int hops)
 removes from the region all vertices within given number of hops (stars) from the initial region boundary
 

Function Documentation

◆ mrExpandFaceRegion()

MR_EXTERN_C_BEGIN MRMESHC_API void mrExpandFaceRegion ( const MRMeshTopology * top,
MRFaceBitSet * region,
int hops )

adds to the region all faces within given number of hops (stars) from the initial region boundary

◆ mrExpandFaceRegionFromFace()

MRMESHC_API MRFaceBitSet * mrExpandFaceRegionFromFace ( const MRMeshTopology * top,
MRFaceId face,
int hops )

returns the region of all faces within given number of hops (stars) from the initial face

◆ mrExpandVertRegion()

MRMESHC_API void mrExpandVertRegion ( const MRMeshTopology * top,
MRVertBitSet * region,
int hops )

◆ mrExpandVertRegionFromVert()

MRMESHC_API MRVertBitSet * mrExpandVertRegionFromVert ( const MRMeshTopology * top,
MRVertId vert,
int hops )

returns the region of all vertices within given number of hops (stars) from the initial vertex

◆ mrShrinkFaceRegion()

MRMESHC_API void mrShrinkFaceRegion ( const MRMeshTopology * top,
MRFaceBitSet * region,
int hops )

removes from the region all faces within given number of hops (stars) from the initial region boundary

◆ mrShrinkVertRegion()

MRMESHC_API void mrShrinkVertRegion ( const MRMeshTopology * top,
MRVertBitSet * region,
int hops )

removes from the region all vertices within given number of hops (stars) from the initial region boundary