MeshLib C Docs
Loading...
Searching...
No Matches
MREnumNeighbours.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRId.h>
4#include <MRCMisc/common.h>
5#include <MRCMisc/exports.h>
6
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
14typedef struct MR_MeshTopology MR_MeshTopology; // Defined in `#include <MRCMesh/MRMeshTopology.h>`.
15typedef struct MR_PointOnFace MR_PointOnFace; // Defined in `#include <MRCMesh/MRPointOnFace.h>`.
16typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
17typedef struct MR_VertScalars MR_VertScalars; // Defined in `#include <MRCMesh/MRVector.h>`.
18typedef struct MR_std_function_bool_from_MR_FaceId MR_std_function_bool_from_MR_FaceId; // Defined in `#include <MRCMisc/std_function_bool_from_MR_FaceId.h>`.
19typedef struct MR_std_function_bool_from_MR_VertId MR_std_function_bool_from_MR_VertId; // Defined in `#include <MRCMisc/std_function_bool_from_MR_VertId.h>`.
20
21
24
27
31
36
39
42
46
49
52
57
65
72
79MRC_API MR_VertScalars *MR_computeSpaceDistances(const MR_Mesh *mesh, const MR_PointOnFace *start, float range);
80
88MRC_API MR_VertBitSet *MR_findNeighborVerts(const MR_Mesh *mesh, const MR_PointOnFace *start, float rangeSq);
89
93
98
101
104
108
111
114
119
127
128#ifdef __cplusplus
129} // extern "C"
130#endif
struct MR_MeshTopology MR_MeshTopology
Definition MR2DContoursTriangulation.h:16
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:15
struct MR_VertScalars MR_VertScalars
Definition MRAggregateFlow.h:17
struct MR_Mesh MR_Mesh
Definition MRCtm.h:13
MRC_API MR_EnumNeihbourFaces * MR_EnumNeihbourFaces_ConstructFromAnother(MR_PassBy _other_pass_by, MR_EnumNeihbourFaces *_other)
MRC_API void MR_EnumNeihbourVertices_Destroy(const MR_EnumNeihbourVertices *_this)
Destroys a heap-allocated instance of MR_EnumNeihbourVertices. Does nothing if the pointer is null.
MRC_API const MR_EnumNeihbourVertices * MR_EnumNeihbourVertices_OffsetPtr(const MR_EnumNeihbourVertices *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_EnumNeihbourVertices * MR_EnumNeihbourVertices_ConstructFromAnother(MR_PassBy _other_pass_by, MR_EnumNeihbourVertices *_other)
MRC_API MR_EnumNeihbourFaces * MR_EnumNeihbourFaces_AssignFromAnother(MR_EnumNeihbourFaces *_this, MR_PassBy _other_pass_by, MR_EnumNeihbourFaces *_other)
MRC_API const MR_EnumNeihbourFaces * MR_EnumNeihbourFaces_OffsetPtr(const MR_EnumNeihbourFaces *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_EnumNeihbourVertices_run_MR_VertId(MR_EnumNeihbourVertices *_this, const MR_MeshTopology *topology, MR_VertId start, const MR_std_function_bool_from_MR_VertId *pred)
struct MR_std_function_bool_from_MR_FaceId MR_std_function_bool_from_MR_FaceId
Definition MREnumNeighbours.h:18
struct MR_std_function_bool_from_MR_VertId MR_std_function_bool_from_MR_VertId
Definition MREnumNeighbours.h:19
MRC_API void MR_EnumNeihbourFaces_Destroy(const MR_EnumNeihbourFaces *_this)
Destroys a heap-allocated instance of MR_EnumNeihbourFaces. Does nothing if the pointer is null.
struct MR_PointOnFace MR_PointOnFace
Definition MREnumNeighbours.h:15
MRC_API MR_EnumNeihbourVertices * MR_EnumNeihbourVertices_DefaultConstruct(void)
MRC_API MR_VertScalars * MR_computeSpaceDistances(const MR_Mesh *mesh, const MR_PointOnFace *start, float range)
MRC_API MR_EnumNeihbourVertices * MR_EnumNeihbourVertices_DefaultConstructArray(size_t num_elems)
struct MR_EnumNeihbourVertices MR_EnumNeihbourVertices
Generated from class MR::EnumNeihbourVertices.
Definition MREnumNeighbours.h:23
MRC_API void MR_EnumNeihbourFaces_run(MR_EnumNeihbourFaces *_this, const MR_MeshTopology *topology, MR_VertId start, const MR_std_function_bool_from_MR_FaceId *pred)
struct MR_EnumNeihbourFaces MR_EnumNeihbourFaces
Generated from class MR::EnumNeihbourFaces.
Definition MREnumNeighbours.h:26
MRC_API void MR_EnumNeihbourVertices_DestroyArray(const MR_EnumNeihbourVertices *_this)
Destroys a heap-allocated array of MR_EnumNeihbourVertices. Does nothing if the pointer is null.
MRC_API MR_EnumNeihbourVertices * MR_EnumNeihbourVertices_AssignFromAnother(MR_EnumNeihbourVertices *_this, MR_PassBy _other_pass_by, MR_EnumNeihbourVertices *_other)
MRC_API MR_EnumNeihbourFaces * MR_EnumNeihbourFaces_DefaultConstructArray(size_t num_elems)
MRC_API MR_VertBitSet * MR_findNeighborVerts(const MR_Mesh *mesh, const MR_PointOnFace *start, float rangeSq)
MRC_API void MR_EnumNeihbourFaces_DestroyArray(const MR_EnumNeihbourFaces *_this)
Destroys a heap-allocated array of MR_EnumNeihbourFaces. Does nothing if the pointer is null.
MRC_API void MR_EnumNeihbourVertices_run_MR_VertBitSet(MR_EnumNeihbourVertices *_this, const MR_MeshTopology *topology, const MR_VertBitSet *start, const MR_std_function_bool_from_MR_VertId *pred)
MRC_API MR_EnumNeihbourVertices * MR_EnumNeihbourVertices_OffsetMutablePtr(MR_EnumNeihbourVertices *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_EnumNeihbourFaces * MR_EnumNeihbourFaces_DefaultConstruct(void)
MRC_API MR_EnumNeihbourFaces * MR_EnumNeihbourFaces_OffsetMutablePtr(MR_EnumNeihbourFaces *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11
Definition MRId.h:56