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#include <stdint.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_FaceBitSet MR_FaceBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
13typedef struct MR_MeshTopology MR_MeshTopology; // Defined in `#include <MRCMesh/MRMeshTopology.h>`.
14typedef struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
15typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
16
17
23MRC_API void MR_expand_MR_FaceBitSet(const MR_MeshTopology *topology, MR_FaceBitSet *region, const int32_t *hops);
24
30
31// adds to the region all vertices within given number of hops (stars) from the initial region boundary
36MRC_API void MR_expand_MR_VertBitSet(const MR_MeshTopology *topology, MR_VertBitSet *region, const int32_t *hops);
37
43
49MRC_API void MR_shrink_MR_FaceBitSet(const MR_MeshTopology *topology, MR_FaceBitSet *region, const int32_t *hops);
50
56MRC_API void MR_shrink_MR_VertBitSet(const MR_MeshTopology *topology, MR_VertBitSet *region, const int32_t *hops);
57
66
75
82
83#ifdef __cplusplus
84} // extern "C"
85#endif
struct MR_MeshTopology MR_MeshTopology
Definition MR2DContoursTriangulation.h:16
struct MR_FaceBitSet MR_FaceBitSet
Definition MRAABBTreeBase.h:25
struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet
Definition MRAABBTreeBase.h:29
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:15
MRC_API void MR_shrink_MR_FaceBitSet(const MR_MeshTopology *topology, MR_FaceBitSet *region, const int32_t *hops)
MRC_API MR_VertBitSet * MR_expand_MR_VertId(const MR_MeshTopology *topology, MR_VertId v, int32_t hops)
MRC_API MR_FaceBitSet * MR_expandFaces(const MR_MeshTopology *topology, const MR_FaceBitSet *region, const MR_UndirectedEdgeBitSet *stopEdges)
MRC_API MR_FaceBitSet * MR_getBoundaryFaces(const MR_MeshTopology *topology, const MR_FaceBitSet *region)
MRC_API void MR_shrink_MR_VertBitSet(const MR_MeshTopology *topology, MR_VertBitSet *region, const int32_t *hops)
MRC_API void MR_expand_MR_FaceBitSet(const MR_MeshTopology *topology, MR_FaceBitSet *region, const int32_t *hops)
MRC_API MR_FaceBitSet * MR_shrinkFaces(const MR_MeshTopology *topology, const MR_FaceBitSet *region, const MR_UndirectedEdgeBitSet *stopEdges)
MRC_API MR_FaceBitSet * MR_expand_MR_FaceId(const MR_MeshTopology *topology, MR_FaceId f, int32_t hops)
MRC_API void MR_expand_MR_VertBitSet(const MR_MeshTopology *topology, MR_VertBitSet *region, const int32_t *hops)
#define MRC_API
Definition exports.h:11
Definition MRId.h:46
Definition MRId.h:56