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
23
27
36
42
47
53
59
64
70
74
79
82MRC_API MR_ThickenParams *MR_ThickenParams_ConstructFrom(float outsideOffset, float insideOffset);
83
86
89
94
97
100
106
115
122
128
135
141
146
152
158
163
169
175
180
186
190
195
198MRC_API MR_ZCompensateParams *MR_ZCompensateParams_ConstructFrom(float maxShift, bool reduceSelfIntersections, float minThickness, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress);
199
202
205
209
212
215
220
228
235
242
243#ifdef __cplusplus
244} // extern "C"
245#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:16
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
Definition MROffsetVerts.h:22
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
Definition MROffsetVerts.h:26
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:23
#define MRC_API
Definition exports.h:11