MeshLib C Docs
Loading...
Searching...
No Matches
MRExpandShrink.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRId.h>
4#include <MRCMisc/exports.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct MR_FaceBitSet MR_FaceBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
11typedef struct MR_MeshTopology MR_MeshTopology; // Defined in `#include <MRCMesh/MRMeshTopology.h>`.
12typedef struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
13typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
14
15
21MRC_API void MR_expand_MR_FaceBitSet(const MR_MeshTopology *topology, MR_FaceBitSet *region, const int *hops);
22
28
29// adds to the region all vertices within given number of hops (stars) from the initial region boundary
34MRC_API void MR_expand_MR_VertBitSet(const MR_MeshTopology *topology, MR_VertBitSet *region, const int *hops);
35
41
47MRC_API void MR_shrink_MR_FaceBitSet(const MR_MeshTopology *topology, MR_FaceBitSet *region, const int *hops);
48
54MRC_API void MR_shrink_MR_VertBitSet(const MR_MeshTopology *topology, MR_VertBitSet *region, const int *hops);
55
64
73
80
81#ifdef __cplusplus
82} // extern "C"
83#endif
struct MR_MeshTopology MR_MeshTopology
Definition MR2DContoursTriangulation.h:15
struct MR_FaceBitSet MR_FaceBitSet
Definition MRAABBTreeBase.h:24
struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet
Definition MRAABBTreeBase.h:28
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:15
MRC_API MR_FaceBitSet * MR_expand_MR_FaceId(const MR_MeshTopology *topology, MR_FaceId f, int hops)
MRC_API MR_FaceBitSet * MR_expandFaces(const MR_MeshTopology *topology, const MR_FaceBitSet *region, const MR_UndirectedEdgeBitSet *stopEdges)
MRC_API MR_VertBitSet * MR_expand_MR_VertId(const MR_MeshTopology *topology, MR_VertId v, int hops)
MRC_API MR_FaceBitSet * MR_getBoundaryFaces(const MR_MeshTopology *topology, const MR_FaceBitSet *region)
MRC_API void MR_expand_MR_VertBitSet(const MR_MeshTopology *topology, MR_VertBitSet *region, const int *hops)
MRC_API void MR_shrink_MR_FaceBitSet(const MR_MeshTopology *topology, MR_FaceBitSet *region, const int *hops)
MRC_API void MR_shrink_MR_VertBitSet(const MR_MeshTopology *topology, MR_VertBitSet *region, const int *hops)
MRC_API MR_FaceBitSet * MR_shrinkFaces(const MR_MeshTopology *topology, const MR_FaceBitSet *region, const MR_UndirectedEdgeBitSet *stopEdges)
MRC_API void MR_expand_MR_FaceBitSet(const MR_MeshTopology *topology, MR_FaceBitSet *region, const int *hops)
#define MRC_API
Definition exports.h:11
Definition MRId.h:45
Definition MRId.h:55