MeshLib
 
Loading...
Searching...
No Matches
MRExpandShrink.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4
5namespace MR
6{
7
9MRMESH_API void expand( const MeshTopology & topology, FaceBitSet & region, int hops = 1 );
11[[nodiscard]] MRMESH_API FaceBitSet expand( const MeshTopology & topology, FaceId f, int hops );
12
13// adds to the region all vertices within given number of hops (stars) from the initial region boundary
14MRMESH_API void expand( const MeshTopology & topology, VertBitSet & region, int hops = 1 );
16[[nodiscard]] MRMESH_API VertBitSet expand( const MeshTopology & topology, VertId v, int hops );
17
19MRMESH_API void shrink( const MeshTopology & topology, FaceBitSet & region, int hops = 1 );
21MRMESH_API void shrink( const MeshTopology & topology, VertBitSet & region, int hops = 1 );
22
25[[nodiscard]] MRMESH_API FaceBitSet expandFaces( const MeshTopology & topology, const FaceBitSet & region, const UndirectedEdgeBitSet * stopEdges = nullptr );
26
29[[nodiscard]] MRMESH_API FaceBitSet shrinkFaces( const MeshTopology & topology, const FaceBitSet & region, const UndirectedEdgeBitSet * stopEdges = nullptr );
30
32[[nodiscard]] MRMESH_API FaceBitSet getBoundaryFaces( const MeshTopology & topology, const FaceBitSet & region );
33
34} //namespace MR
int VertId
Definition MRDotNet/MRMeshFwd.h:51
int FaceId
Definition MRDotNet/MRMeshFwd.h:53
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRDotNet/MRBitSet.h:39
Definition MRMesh/MRMeshTopology.h:18
Definition MRCameraOrientationPlugin.h:7
MRMESH_API void shrink(const MeshTopology &topology, FaceBitSet &region, int hops=1)
removes from the region all faces within given number of hops (stars) from the initial region boundar...
MRMESH_API FaceBitSet expandFaces(const MeshTopology &topology, const FaceBitSet &region, const UndirectedEdgeBitSet *stopEdges=nullptr)
MRMESH_API void expand(const MeshTopology &topology, FaceBitSet &region, int hops=1)
adds to the region all faces within given number of hops (stars) from the initial region boundary
MRMESH_API FaceBitSet getBoundaryFaces(const MeshTopology &topology, const FaceBitSet &region)
returns faces from given region that have at least one neighbor face with shared edge not from the re...
MRMESH_API FaceBitSet shrinkFaces(const MeshTopology &topology, const FaceBitSet &region, const UndirectedEdgeBitSet *stopEdges=nullptr)