MeshLib C Docs
Loading...
Searching...
No Matches
MROffsetVerts.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
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_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
15typedef struct MR_std_function_float_from_MR_VertId MR_std_function_float_from_MR_VertId; // Defined in `#include <MRCMisc/std_function_float_from_MR_VertId.h>`.
16typedef struct MR_std_optional_MR_VertCoords MR_std_optional_MR_VertCoords; // Defined in `#include <MRCMisc/std_optional_MR_VertCoords.h>`.
17typedef struct MR_std_optional_MR_VertScalars MR_std_optional_MR_VertScalars; // Defined in `#include <MRCMisc/std_optional_MR_VertScalars.h>`.
18
19
22
25
34
40
45
51
57
62
68
72
77
80MRC_API MR_ThickenParams *MR_ThickenParams_ConstructFrom(float outsideOffset, float insideOffset);
81
84
87
92
95
98
104
113
120
126
133
139
144
150
156
161
167
173
178
184
188
193
196MRC_API MR_ZCompensateParams *MR_ZCompensateParams_ConstructFrom(float maxShift, bool reduceSelfIntersections, float minThickness, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress);
197
200
203
207
210
213
218
226
233
240
241#ifdef __cplusplus
242} // extern "C"
243#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_std_function_float_from_MR_VertId MR_std_function_float_from_MR_VertId
Definition MRClosestWeightedPoint.h:18
struct MR_Mesh MR_Mesh
Definition MRCtm.h:12
struct MR_std_optional_MR_VertScalars MR_std_optional_MR_VertScalars
Definition MRMeshThickness.h:21
MRC_API MR_ZCompensateParams * MR_ZCompensateParams_DefaultConstruct(void)
MRC_API const float * MR_ThickenParams_Get_insideOffset(const MR_ThickenParams *_this)
MRC_API void MR_ThickenParams_Destroy(const MR_ThickenParams *_this)
Destroys a heap-allocated instance of MR_ThickenParams. Does nothing if the pointer is null.
MRC_API MR_ZCompensateParams * MR_ZCompensateParams_OffsetMutablePtr(MR_ZCompensateParams *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 bool MR_offsetVerts(MR_Mesh *mesh, const MR_std_function_float_from_MR_VertId *offset, const MR_std_function_bool_from_float *cb)
MRC_API MR_ThickenParams * MR_ThickenParams_OffsetMutablePtr(MR_ThickenParams *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_std_optional_MR_VertScalars * MR_findZcompensationShifts(const MR_Mesh *mesh, const MR_ZCompensateParams *params)
MRC_API MR_Mesh * MR_makeThickMesh(const MR_Mesh *m, const MR_ThickenParams *params)
MRC_API bool MR_zCompensate(MR_Mesh *mesh, const MR_ZCompensateParams *params)
MRC_API MR_std_optional_MR_VertCoords * MR_findZcompensatedPositions(const MR_Mesh *mesh, const MR_ZCompensateParams *params)
MRC_API MR_std_function_bool_from_float * MR_ZCompensateParams_GetMutable_progress(MR_ZCompensateParams *_this)
MRC_API void MR_ThickenParams_Set_insideOffset(MR_ThickenParams *_this, float value)
MRC_API void MR_ZCompensateParams_Set_minThickness(MR_ZCompensateParams *_this, float value)
MRC_API MR_ThickenParams * MR_ThickenParams_AssignFromAnother(MR_ThickenParams *_this, const MR_ThickenParams *_other)
MRC_API MR_ThickenParams * MR_ThickenParams_DefaultConstructArray(size_t num_elems)
MRC_API MR_ZCompensateParams * MR_ZCompensateParams_AssignFromAnother(MR_ZCompensateParams *_this, MR_PassBy _other_pass_by, MR_ZCompensateParams *_other)
MRC_API MR_ThickenParams * MR_ThickenParams_ConstructFromAnother(const MR_ThickenParams *_other)
MRC_API MR_ThickenParams * MR_ThickenParams_DefaultConstruct(void)
MRC_API MR_ZCompensateParams * MR_ZCompensateParams_ConstructFrom(float maxShift, bool reduceSelfIntersections, float minThickness, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
MRC_API MR_ZCompensateParams * MR_ZCompensateParams_DefaultConstructArray(size_t num_elems)
MRC_API void MR_ThickenParams_Set_outsideOffset(MR_ThickenParams *_this, float value)
MRC_API const float * MR_ThickenParams_Get_outsideOffset(const MR_ThickenParams *_this)
MRC_API const MR_ThickenParams * MR_ThickenParams_OffsetPtr(const MR_ThickenParams *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 const MR_ZCompensateParams * MR_ZCompensateParams_OffsetPtr(const MR_ZCompensateParams *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 float * MR_ThickenParams_GetMutable_insideOffset(MR_ThickenParams *_this)
MRC_API const float * MR_ZCompensateParams_Get_minThickness(const MR_ZCompensateParams *_this)
struct MR_std_optional_MR_VertCoords MR_std_optional_MR_VertCoords
Definition MROffsetVerts.h:16
MRC_API const MR_std_function_bool_from_float * MR_ZCompensateParams_Get_progress(const MR_ZCompensateParams *_this)
struct MR_ThickenParams MR_ThickenParams
Generated from class MR::ThickenParams.
Definition MROffsetVerts.h:21
MRC_API void MR_ThickenParams_DestroyArray(const MR_ThickenParams *_this)
Destroys a heap-allocated array of MR_ThickenParams. Does nothing if the pointer is null.
struct MR_ZCompensateParams MR_ZCompensateParams
Generated from class MR::ZCompensateParams.
Definition MROffsetVerts.h:24
MRC_API const float * MR_ZCompensateParams_Get_maxShift(const MR_ZCompensateParams *_this)
MRC_API const bool * MR_ZCompensateParams_Get_reduceSelfIntersections(const MR_ZCompensateParams *_this)
MRC_API void MR_ZCompensateParams_DestroyArray(const MR_ZCompensateParams *_this)
Destroys a heap-allocated array of MR_ZCompensateParams. Does nothing if the pointer is null.
MRC_API float * MR_ZCompensateParams_GetMutable_maxShift(MR_ZCompensateParams *_this)
MRC_API void MR_ZCompensateParams_Set_progress(MR_ZCompensateParams *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API float * MR_ZCompensateParams_GetMutable_minThickness(MR_ZCompensateParams *_this)
MRC_API void MR_ZCompensateParams_Set_maxShift(MR_ZCompensateParams *_this, float value)
MRC_API void MR_ZCompensateParams_Set_reduceSelfIntersections(MR_ZCompensateParams *_this, bool value)
MRC_API MR_ZCompensateParams * MR_ZCompensateParams_ConstructFromAnother(MR_PassBy _other_pass_by, MR_ZCompensateParams *_other)
MRC_API MR_ThickenParams * MR_ThickenParams_ConstructFrom(float outsideOffset, float insideOffset)
MRC_API void MR_ZCompensateParams_Destroy(const MR_ZCompensateParams *_this)
Destroys a heap-allocated instance of MR_ZCompensateParams. Does nothing if the pointer is null.
MRC_API bool * MR_ZCompensateParams_GetMutable_reduceSelfIntersections(MR_ZCompensateParams *_this)
MRC_API float * MR_ThickenParams_GetMutable_outsideOffset(MR_ThickenParams *_this)
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11