MeshLib C Docs
Loading...
Searching...
No Matches
MRSurfaceDistanceBuilder.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 <stdbool.h>
8#include <stddef.h>
9#include <stdint.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
16typedef struct MR_MeshTriPoint MR_MeshTriPoint; // Defined in `#include <MRCMesh/MRMeshTriPoint.h>`.
17typedef struct MR_Vector3f MR_Vector3f; // Defined in `#include <MRCMesh/MRVector3.h>`.
18typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
19typedef struct MR_VertScalars MR_VertScalars; // Defined in `#include <MRCMesh/MRVector.h>`.
20typedef struct MR_phmap_flat_hash_map_MR_VertId_float MR_phmap_flat_hash_map_MR_VertId_float; // Defined in `#include <MRCMisc/phmap_flat_hash_map_MR_VertId_float.h>`.
21
22
25
29
35
40
46
52
57
63
67
72
75
78
83
87
90
93
99
105
109
112
115
120
126
129
132
138
144
150
156
161
167
172
177
178#ifdef __cplusplus
179} // extern "C"
180#endif
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:15
struct MR_VertScalars MR_VertScalars
Definition MRAggregateFlow.h:17
struct MR_MeshTriPoint MR_MeshTriPoint
Definition MRAggregateFlow.h:13
struct MR_Mesh MR_Mesh
Definition MRCtm.h:13
MRC_API MR_VertId MR_SurfaceDistanceBuilder_growOne(MR_SurfaceDistanceBuilder *_this)
struct MR_SurfaceDistanceBuilder MR_SurfaceDistanceBuilder
Definition MRSurfaceDistanceBuilder.h:28
MRC_API MR_VertDistance * MR_VertDistance_Construct(MR_VertId v, float d)
MRC_API const MR_VertDistance * MR_VertDistance_OffsetPtr(const MR_VertDistance *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
struct MR_VertDistance MR_VertDistance
Generated from class MR::VertDistance.
Definition MRSurfaceDistanceBuilder.h:24
MRC_API MR_VertDistance * MR_VertDistance_DefaultConstructArray(size_t num_elems)
MRC_API const MR_VertId * MR_VertDistance_Get_vert(const MR_VertDistance *_this)
MRC_API void MR_VertDistance_DestroyArray(const MR_VertDistance *_this)
Destroys a heap-allocated array of MR_VertDistance. Does nothing if the pointer is null.
MRC_API void MR_SurfaceDistanceBuilder_addStartVertices(MR_SurfaceDistanceBuilder *_this, const MR_phmap_flat_hash_map_MR_VertId_float *startVertices)
MRC_API MR_VertId * MR_VertDistance_GetMutable_vert(MR_VertDistance *_this)
MRC_API void MR_SurfaceDistanceBuilder_setMaxVertUpdates(MR_SurfaceDistanceBuilder *_this, int32_t v)
MRC_API MR_VertDistance * MR_VertDistance_ConstructFromAnother(const MR_VertDistance *_other)
MRC_API void MR_VertDistance_Destroy(const MR_VertDistance *_this)
Destroys a heap-allocated instance of MR_VertDistance. Does nothing if the pointer is null.
MRC_API MR_SurfaceDistanceBuilder * MR_SurfaceDistanceBuilder_OffsetMutablePtr(MR_SurfaceDistanceBuilder *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_SurfaceDistanceBuilder_addStart(MR_SurfaceDistanceBuilder *_this, const MR_MeshTriPoint *start)
MRC_API MR_VertDistance * MR_VertDistance_DefaultConstruct(void)
MRC_API void MR_SurfaceDistanceBuilder_DestroyArray(const MR_SurfaceDistanceBuilder *_this)
Destroys a heap-allocated array of MR_SurfaceDistanceBuilder. Does nothing if the pointer is null.
MRC_API bool MR_SurfaceDistanceBuilder_done(const MR_SurfaceDistanceBuilder *_this)
MRC_API MR_VertDistance * MR_VertDistance_OffsetMutablePtr(MR_VertDistance *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_VertDistance_Set_vert(MR_VertDistance *_this, MR_VertId value)
MRC_API float MR_SurfaceDistanceBuilder_doneDistance(const MR_SurfaceDistanceBuilder *_this)
MRC_API const float * MR_VertDistance_Get_distance(const MR_VertDistance *_this)
MRC_API MR_SurfaceDistanceBuilder * MR_SurfaceDistanceBuilder_Construct_3(const MR_Mesh *mesh, const MR_Vector3f *target, const MR_VertBitSet *region)
MRC_API void MR_SurfaceDistanceBuilder_Destroy(const MR_SurfaceDistanceBuilder *_this)
Destroys a heap-allocated instance of MR_SurfaceDistanceBuilder. Does nothing if the pointer is null.
MRC_API MR_VertDistance * MR_VertDistance_AssignFromAnother(MR_VertDistance *_this, const MR_VertDistance *_other)
MRC_API void MR_VertDistance_Set_distance(MR_VertDistance *_this, float value)
MRC_API void MR_SurfaceDistanceBuilder_addStartRegion(MR_SurfaceDistanceBuilder *_this, const MR_VertBitSet *region, float startDistance)
MRC_API bool MR_less_MR_VertDistance(const MR_VertDistance *a, const MR_VertDistance *b)
MRC_API MR_SurfaceDistanceBuilder * MR_SurfaceDistanceBuilder_Construct_2(const MR_Mesh *mesh, const MR_VertBitSet *region)
MRC_API MR_SurfaceDistanceBuilder * MR_SurfaceDistanceBuilder_ConstructFromAnother(MR_PassBy _other_pass_by, MR_SurfaceDistanceBuilder *_other)
MRC_API float * MR_VertDistance_GetMutable_distance(MR_VertDistance *_this)
MRC_API const MR_SurfaceDistanceBuilder * MR_SurfaceDistanceBuilder_OffsetPtr(const MR_SurfaceDistanceBuilder *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_VertScalars * MR_SurfaceDistanceBuilder_takeDistanceMap(MR_SurfaceDistanceBuilder *_this)
struct MR_phmap_flat_hash_map_MR_VertId_float MR_phmap_flat_hash_map_MR_VertId_float
Definition MRSurfaceDistance.h:16
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11
Definition MRVector3.h:51
Definition MRId.h:56