Go to the source code of this file.
Typedefs | |
| typedef struct MR_ReduceTotalAngleParams | MR_ReduceTotalAngleParams |
| typedef struct MR_ReduceTotalAngleParams MR_ReduceTotalAngleParams |
Generated from class MR::ReduceTotalAngleParams. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| 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 ) |
minimizes summed deviation of triangle-triangle angles from plane, where each edge is weighted by its length; performs the given number of iterations, during each the edges are flipped; returns the total number of flips done Generated from function MR::reduceTotalAngle. Parameter topology can not be null. It is a single object. Parameter points can not be null. It is a single object. Parameter params is a single object. Parameter params has a default argument: {}, pass a null pointer to use it. Parameter progressCallback is a single object. Parameter progressCallback has a default argument: {}, pass a null pointer to use it.
| MRC_API int MR_reduceTotalAngleInMesh | ( | MR_Mesh * | mesh, |
| int | numIters, | ||
| const MR_ReduceTotalAngleParams * | params, | ||
| const MR_std_function_bool_from_float * | progressCallback ) |
Generated from function MR::reduceTotalAngleInMesh. Parameter mesh can not be null. It is a single object. Parameter params is a single object. Parameter params has a default argument: {}, pass a null pointer to use it. Parameter progressCallback is a single object. Parameter progressCallback has a default argument: {}, pass a null pointer to use it.
| MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_AssignFromAnother | ( | MR_ReduceTotalAngleParams * | _this, |
| const MR_ReduceTotalAngleParams * | _other ) |
Generated from method MR::ReduceTotalAngleParams::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.
| 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 ) |
Constructs MR::ReduceTotalAngleParams elementwise. The reference to the parameter region might be preserved in the constructed object. The reference to the parameter notFlippable might be preserved in the constructed object. The reference to the parameter vertRegion might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_ReduceTotalAngleParams_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_ConstructFromAnother | ( | const MR_ReduceTotalAngleParams * | _other | ) |
Generated from constructor MR::ReduceTotalAngleParams::ReduceTotalAngleParams. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_ReduceTotalAngleParams_Destroy() to free it when you're done using it.
| MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_ReduceTotalAngleParams_Destroy() to free it when you're done using it.
| MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_ReduceTotalAngleParams_DestroyArray(). Use MR_ReduceTotalAngleParams_OffsetMutablePtr() and MR_ReduceTotalAngleParams_OffsetPtr() to access the array elements.
| 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 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 const float * MR_ReduceTotalAngleParams_Get_criticalTriAspectRatio | ( | const MR_ReduceTotalAngleParams * | _this | ) |
if this value is less than FLT_MAX then the algorithm will ignore dihedral angle check if one of triangles has aspect ratio more than this value Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named criticalTriAspectRatio. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const float * MR_ReduceTotalAngleParams_Get_factorDelone | ( | const MR_ReduceTotalAngleParams * | _this | ) |
This value must be in [0,1] range; factorDelone = 0 means that only dihedral angles are minimized, ignoring Delaunay criterion; factorDelone = 1 means that only Delaunay criterion is optimized ignoring dihedral angles; other values mean that a mixture of both criteria will be optimized Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named factorDelone. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const float * MR_ReduceTotalAngleParams_Get_maxAngleChange | ( | const MR_ReduceTotalAngleParams * | _this | ) |
Maximal allowed dihedral angle change (in radians) over the flipped edge Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named maxAngleChange. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_UndirectedEdgeBitSet *const * MR_ReduceTotalAngleParams_Get_notFlippable | ( | const MR_ReduceTotalAngleParams * | _this | ) |
Edges specified by this bit-set will never be flipped Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named notFlippable. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_FaceBitSet *const * MR_ReduceTotalAngleParams_Get_region | ( | const MR_ReduceTotalAngleParams * | _this | ) |
Only edges with left and right faces in this set can be flipped Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named region. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_VertBitSet *const * MR_ReduceTotalAngleParams_Get_vertRegion | ( | const MR_ReduceTotalAngleParams * | _this | ) |
Only edges with origin or destination in this set before or after flip can be flipped Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named vertRegion. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API float * MR_ReduceTotalAngleParams_GetMutable_criticalTriAspectRatio | ( | MR_ReduceTotalAngleParams * | _this | ) |
if this value is less than FLT_MAX then the algorithm will ignore dihedral angle check if one of triangles has aspect ratio more than this value Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named criticalTriAspectRatio. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API float * MR_ReduceTotalAngleParams_GetMutable_factorDelone | ( | MR_ReduceTotalAngleParams * | _this | ) |
This value must be in [0,1] range; factorDelone = 0 means that only dihedral angles are minimized, ignoring Delaunay criterion; factorDelone = 1 means that only Delaunay criterion is optimized ignoring dihedral angles; other values mean that a mixture of both criteria will be optimized Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named factorDelone. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API float * MR_ReduceTotalAngleParams_GetMutable_maxAngleChange | ( | MR_ReduceTotalAngleParams * | _this | ) |
Maximal allowed dihedral angle change (in radians) over the flipped edge Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named maxAngleChange. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_UndirectedEdgeBitSet ** MR_ReduceTotalAngleParams_GetMutable_notFlippable | ( | MR_ReduceTotalAngleParams * | _this | ) |
Edges specified by this bit-set will never be flipped Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named notFlippable. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_FaceBitSet ** MR_ReduceTotalAngleParams_GetMutable_region | ( | MR_ReduceTotalAngleParams * | _this | ) |
Only edges with left and right faces in this set can be flipped Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named region. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_VertBitSet ** MR_ReduceTotalAngleParams_GetMutable_vertRegion | ( | MR_ReduceTotalAngleParams * | _this | ) |
Only edges with origin or destination in this set before or after flip can be flipped Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named vertRegion. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_OffsetMutablePtr | ( | MR_ReduceTotalAngleParams * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_ReduceTotalAngleParams * MR_ReduceTotalAngleParams_OffsetPtr | ( | const MR_ReduceTotalAngleParams * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_ReduceTotalAngleParams_Set_criticalTriAspectRatio | ( | MR_ReduceTotalAngleParams * | _this, |
| float | value ) |
if this value is less than FLT_MAX then the algorithm will ignore dihedral angle check if one of triangles has aspect ratio more than this value Modifies a member variable of class MR::ReduceTotalAngleParams named criticalTriAspectRatio. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in criticalTriAspectRatio.
| MRC_API void MR_ReduceTotalAngleParams_Set_factorDelone | ( | MR_ReduceTotalAngleParams * | _this, |
| float | value ) |
This value must be in [0,1] range; factorDelone = 0 means that only dihedral angles are minimized, ignoring Delaunay criterion; factorDelone = 1 means that only Delaunay criterion is optimized ignoring dihedral angles; other values mean that a mixture of both criteria will be optimized Modifies a member variable of class MR::ReduceTotalAngleParams named factorDelone. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in factorDelone.
| MRC_API void MR_ReduceTotalAngleParams_Set_maxAngleChange | ( | MR_ReduceTotalAngleParams * | _this, |
| float | value ) |
Maximal allowed dihedral angle change (in radians) over the flipped edge Modifies a member variable of class MR::ReduceTotalAngleParams named maxAngleChange. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in maxAngleChange.
| MRC_API void MR_ReduceTotalAngleParams_Set_notFlippable | ( | MR_ReduceTotalAngleParams * | _this, |
| const MR_UndirectedEdgeBitSet * | value ) |
Edges specified by this bit-set will never be flipped Modifies a member variable of class MR::ReduceTotalAngleParams named notFlippable. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element notFlippable. When this function is called, this object will drop object references it held previously in notFlippable.
| MRC_API void MR_ReduceTotalAngleParams_Set_region | ( | MR_ReduceTotalAngleParams * | _this, |
| const MR_FaceBitSet * | value ) |
Only edges with left and right faces in this set can be flipped Modifies a member variable of class MR::ReduceTotalAngleParams named region. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element region. When this function is called, this object will drop object references it held previously in region.
| MRC_API void MR_ReduceTotalAngleParams_Set_vertRegion | ( | MR_ReduceTotalAngleParams * | _this, |
| const MR_VertBitSet * | value ) |
Only edges with origin or destination in this set before or after flip can be flipped Modifies a member variable of class MR::ReduceTotalAngleParams named vertRegion. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element vertRegion. When this function is called, this object will drop object references it held previously in vertRegion.