MeshLib C Docs
Loading...
Searching...
No Matches
MRCurve.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRVector3.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_std_function_MR_CurvePoint_from_float MR_std_function_MR_CurvePoint_from_float; // Defined in `#include <MRCMisc/std_function_MR_CurvePoint_from_float.h>`.
14
15
19
23
29MRC_API const MR_Vector3f *MR_CurvePoint_Get_pos(const MR_CurvePoint *_this);
30
37
44
50MRC_API const MR_Vector3f *MR_CurvePoint_Get_dir(const MR_CurvePoint *_this);
51
58
65
72
79
86
90
95
103
106MRC_API const MR_CurvePoint *MR_CurvePoint_OffsetPtr(const MR_CurvePoint *ptr, ptrdiff_t i);
107
111
117
119MRC_API void MR_CurvePoint_Destroy(const MR_CurvePoint *_this);
120
122MRC_API void MR_CurvePoint_DestroyArray(const MR_CurvePoint *_this);
123
131
138
144MRC_API void MR_CurveFunc_Set_func(MR_CurveFunc *_this, MR_PassBy value_pass_by, MR_std_function_MR_CurvePoint_from_float *value);
145
152
158MRC_API const float *MR_CurveFunc_Get_totalLength(const MR_CurveFunc *_this);
159
164MRC_API void MR_CurveFunc_Set_totalLength(MR_CurveFunc *_this, float value);
165
172
176
181
186MRC_API MR_CurveFunc *MR_CurveFunc_ConstructFrom(MR_PassBy func_pass_by, MR_std_function_MR_CurvePoint_from_float *func, float totalLength);
187
190MRC_API const MR_CurveFunc *MR_CurveFunc_OffsetPtr(const MR_CurveFunc *ptr, ptrdiff_t i);
191
195
199MRC_API MR_CurveFunc *MR_CurveFunc_ConstructFromAnother(MR_PassBy _other_pass_by, MR_CurveFunc *_other);
200
202MRC_API void MR_CurveFunc_Destroy(const MR_CurveFunc *_this);
203
205MRC_API void MR_CurveFunc_DestroyArray(const MR_CurveFunc *_this);
206
212MRC_API MR_CurveFunc *MR_CurveFunc_AssignFromAnother(MR_CurveFunc *_this, MR_PassBy _other_pass_by, MR_CurveFunc *_other);
213
214#ifdef __cplusplus
215} // extern "C"
216#endif
struct MR_CurvePoint MR_CurvePoint
Definition MRAlignContoursToMesh.h:15
struct MR_CurveFunc MR_CurveFunc
Definition MRAlignContoursToMesh.h:14
MRC_API void MR_CurveFunc_Set_totalLength(MR_CurveFunc *_this, float value)
MRC_API MR_CurveFunc * MR_CurveFunc_DefaultConstruct(void)
MRC_API void MR_CurvePoint_DestroyArray(const MR_CurvePoint *_this)
Destroys a heap-allocated array of MR_CurvePoint. Does nothing if the pointer is null.
MRC_API const MR_CurveFunc * MR_CurveFunc_OffsetPtr(const MR_CurveFunc *ptr, ptrdiff_t i)
MRC_API const MR_Vector3f * MR_CurvePoint_Get_pos(const MR_CurvePoint *_this)
MRC_API void MR_CurvePoint_Set_snorm(MR_CurvePoint *_this, MR_Vector3f value)
MRC_API MR_CurvePoint * MR_CurvePoint_DefaultConstructArray(size_t num_elems)
MRC_API MR_CurveFunc * MR_CurveFunc_AssignFromAnother(MR_CurveFunc *_this, MR_PassBy _other_pass_by, MR_CurveFunc *_other)
MRC_API MR_CurvePoint * MR_CurvePoint_ConstructFrom(MR_Vector3f pos, MR_Vector3f dir, MR_Vector3f snorm)
MRC_API MR_Vector3f * MR_CurvePoint_GetMutable_dir(MR_CurvePoint *_this)
MRC_API const MR_Vector3f * MR_CurvePoint_Get_dir(const MR_CurvePoint *_this)
MRC_API MR_CurveFunc * MR_CurveFunc_ConstructFrom(MR_PassBy func_pass_by, MR_std_function_MR_CurvePoint_from_float *func, float totalLength)
MRC_API MR_CurvePoint * MR_CurvePoint_ConstructFromAnother(const MR_CurvePoint *_other)
MRC_API MR_Vector3f * MR_CurvePoint_GetMutable_snorm(MR_CurvePoint *_this)
MRC_API const MR_std_function_MR_CurvePoint_from_float * MR_CurveFunc_Get_func(const MR_CurveFunc *_this)
MRC_API MR_CurvePoint * MR_CurvePoint_AssignFromAnother(MR_CurvePoint *_this, const MR_CurvePoint *_other)
MRC_API MR_CurveFunc * MR_CurveFunc_OffsetMutablePtr(MR_CurveFunc *ptr, ptrdiff_t i)
MRC_API const MR_CurvePoint * MR_CurvePoint_OffsetPtr(const MR_CurvePoint *ptr, ptrdiff_t i)
MRC_API MR_Vector3f * MR_CurvePoint_GetMutable_pos(MR_CurvePoint *_this)
MRC_API void MR_CurveFunc_DestroyArray(const MR_CurveFunc *_this)
Destroys a heap-allocated array of MR_CurveFunc. Does nothing if the pointer is null.
MRC_API void MR_CurveFunc_Destroy(const MR_CurveFunc *_this)
Destroys a heap-allocated instance of MR_CurveFunc. Does nothing if the pointer is null.
MRC_API MR_CurveFunc * MR_CurveFunc_DefaultConstructArray(size_t num_elems)
MRC_API float * MR_CurveFunc_GetMutable_totalLength(MR_CurveFunc *_this)
MRC_API MR_CurvePoint * MR_CurvePoint_OffsetMutablePtr(MR_CurvePoint *ptr, ptrdiff_t i)
MRC_API void MR_CurvePoint_Set_dir(MR_CurvePoint *_this, MR_Vector3f value)
MRC_API MR_std_function_MR_CurvePoint_from_float * MR_CurveFunc_GetMutable_func(MR_CurveFunc *_this)
MRC_API const MR_Vector3f * MR_CurvePoint_Get_snorm(const MR_CurvePoint *_this)
MRC_API MR_CurveFunc * MR_CurveFunc_ConstructFromAnother(MR_PassBy _other_pass_by, MR_CurveFunc *_other)
MRC_API void MR_CurveFunc_Set_func(MR_CurveFunc *_this, MR_PassBy value_pass_by, MR_std_function_MR_CurvePoint_from_float *value)
MRC_API MR_CurvePoint * MR_CurvePoint_DefaultConstruct(void)
MRC_API const float * MR_CurveFunc_Get_totalLength(const MR_CurveFunc *_this)
MRC_API void MR_CurvePoint_Set_pos(MR_CurvePoint *_this, MR_Vector3f value)
MRC_API void MR_CurvePoint_Destroy(const MR_CurvePoint *_this)
Destroys a heap-allocated instance of MR_CurvePoint. Does nothing if the pointer is null.
struct MR_std_function_MR_CurvePoint_from_float MR_std_function_MR_CurvePoint_from_float
Definition MRCurve.h:13
Generated from class MR::Vector3f.
Definition MRVector3.h:47