MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshTotalAngle.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stddef.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct MR_FaceBitSet MR_FaceBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
12typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
13typedef struct MR_MeshTopology MR_MeshTopology; // Defined in `#include <MRCMesh/MRMeshTopology.h>`.
14typedef struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
15typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
16typedef struct MR_VertCoords MR_VertCoords; // Defined in `#include <MRCMesh/MRVector.h>`.
17typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
18
19
23
30
36
43
51
58
66
76
85
95
102
109
116
123
130
137
144
151
158
162
167
174MRC_API MR_ReduceTotalAngleParams *MR_ReduceTotalAngleParams_ConstructFrom(float maxAngleChange, float criticalTriAspectRatio, float factorDelone, const MR_FaceBitSet *region, const MR_UndirectedEdgeBitSet *notFlippable, const MR_VertBitSet *vertRegion);
175
179
183
189
192
195
203
214MRC_API int MR_reduceTotalAngle(MR_MeshTopology *topology, const MR_VertCoords *points, int numIters, const MR_ReduceTotalAngleParams *params, const MR_std_function_bool_from_float *progressCallback);
215
222MRC_API int MR_reduceTotalAngleInMesh(MR_Mesh *mesh, int numIters, const MR_ReduceTotalAngleParams *params, const MR_std_function_bool_from_float *progressCallback);
223
224#ifdef __cplusplus
225} // extern "C"
226#endif
struct MR_MeshTopology MR_MeshTopology
Definition MR2DContoursTriangulation.h:15
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet
Definition MRAABBTreeBase.h:24
struct MR_VertCoords MR_VertCoords
std::vector<T>-like container that requires specific indexing type,
Definition MRAABBTreePoints.h:21
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:22
struct MR_FaceBitSet MR_FaceBitSet
Definition MRAABBTree.h:17
struct MR_Mesh MR_Mesh
Definition MRCtm.h:16
MRC_API void MR_ReduceTotalAngleParams_Set_notFlippable(MR_ReduceTotalAngleParams *_this, const MR_UndirectedEdgeBitSet *value)
MRC_API void MR_ReduceTotalAngleParams_Set_maxAngleChange(MR_ReduceTotalAngleParams *_this, float value)
MRC_API const MR_UndirectedEdgeBitSet *const * MR_ReduceTotalAngleParams_Get_notFlippable(const MR_ReduceTotalAngleParams *_this)
MRC_API const MR_VertBitSet *const * MR_ReduceTotalAngleParams_Get_vertRegion(const MR_ReduceTotalAngleParams *_this)
MRC_API const MR_FaceBitSet ** MR_ReduceTotalAngleParams_GetMutable_region(MR_ReduceTotalAngleParams *_this)
MRC_API void MR_ReduceTotalAngleParams_DestroyArray(const MR_ReduceTotalAngleParams *_this)
Destroys a heap-allocated array of MR_ReduceTotalAngleParams. Does nothing if the pointer is null.
MRC_API void MR_ReduceTotalAngleParams_Set_vertRegion(MR_ReduceTotalAngleParams *_this, const MR_VertBitSet *value)
struct MR_ReduceTotalAngleParams MR_ReduceTotalAngleParams
Definition MRMeshTotalAngle.h:22
MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_AssignFromAnother(MR_ReduceTotalAngleParams *_this, const MR_ReduceTotalAngleParams *_other)
MRC_API const float * MR_ReduceTotalAngleParams_Get_factorDelone(const MR_ReduceTotalAngleParams *_this)
MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_ConstructFrom(float maxAngleChange, float criticalTriAspectRatio, float factorDelone, const MR_FaceBitSet *region, const MR_UndirectedEdgeBitSet *notFlippable, const MR_VertBitSet *vertRegion)
MRC_API float * MR_ReduceTotalAngleParams_GetMutable_maxAngleChange(MR_ReduceTotalAngleParams *_this)
MRC_API void MR_ReduceTotalAngleParams_Set_criticalTriAspectRatio(MR_ReduceTotalAngleParams *_this, float value)
MRC_API void MR_ReduceTotalAngleParams_Destroy(const MR_ReduceTotalAngleParams *_this)
Destroys a heap-allocated instance of MR_ReduceTotalAngleParams. Does nothing if the pointer is null.
MRC_API const float * MR_ReduceTotalAngleParams_Get_criticalTriAspectRatio(const MR_ReduceTotalAngleParams *_this)
MRC_API float * MR_ReduceTotalAngleParams_GetMutable_factorDelone(MR_ReduceTotalAngleParams *_this)
MRC_API const float * MR_ReduceTotalAngleParams_Get_maxAngleChange(const MR_ReduceTotalAngleParams *_this)
MRC_API int MR_reduceTotalAngle(MR_MeshTopology *topology, const MR_VertCoords *points, int numIters, const MR_ReduceTotalAngleParams *params, const MR_std_function_bool_from_float *progressCallback)
MRC_API const MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_OffsetPtr(const MR_ReduceTotalAngleParams *ptr, ptrdiff_t i)
MRC_API void MR_ReduceTotalAngleParams_Set_region(MR_ReduceTotalAngleParams *_this, const MR_FaceBitSet *value)
MRC_API float * MR_ReduceTotalAngleParams_GetMutable_criticalTriAspectRatio(MR_ReduceTotalAngleParams *_this)
MRC_API const MR_FaceBitSet *const * MR_ReduceTotalAngleParams_Get_region(const MR_ReduceTotalAngleParams *_this)
MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_OffsetMutablePtr(MR_ReduceTotalAngleParams *ptr, ptrdiff_t i)
MRC_API void MR_ReduceTotalAngleParams_Set_factorDelone(MR_ReduceTotalAngleParams *_this, float value)
MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_ConstructFromAnother(const MR_ReduceTotalAngleParams *_other)
MRC_API const MR_UndirectedEdgeBitSet ** MR_ReduceTotalAngleParams_GetMutable_notFlippable(MR_ReduceTotalAngleParams *_this)
MRC_API const MR_VertBitSet ** MR_ReduceTotalAngleParams_GetMutable_vertRegion(MR_ReduceTotalAngleParams *_this)
MRC_API int MR_reduceTotalAngleInMesh(MR_Mesh *mesh, int numIters, const MR_ReduceTotalAngleParams *params, const MR_std_function_bool_from_float *progressCallback)
MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_DefaultConstruct(void)
MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_DefaultConstructArray(size_t num_elems)
#define MRC_API
Definition include/MRCMisc/exports.h:11