#include <MRCMesh/MRId.h>#include <MRCMisc/common.h>#include <MRCMisc/exports.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Typedefs | |
| typedef struct MR_ConvertToIntVector | MR_ConvertToIntVector |
| typedef struct MR_PreciseVertCoords | MR_PreciseVertCoords |
| typedef struct MR_Triangulation | MR_Triangulation |
| typedef struct MR_Vector_MR_AlphaShapeNei | MR_Vector_MR_AlphaShapeNei |
| typedef struct MR_Vector_MR_BallPivotCandidate | MR_Vector_MR_BallPivotCandidate |
| typedef struct MR_Vector_MR_Vector3i_MR_VertId | MR_Vector_MR_Vector3i_MR_VertId |
| typedef struct MR_std_array_MR_VertId_3 | MR_std_array_MR_VertId_3 |
| typedef struct MR_std_optional_MR_Triangulation | MR_std_optional_MR_Triangulation |
| typedef struct MR_std_optional_std_array_MR_VertId_3 | MR_std_optional_std_array_MR_VertId_3 |
| typedef struct MR_std_vector_MR_MeshBuilder_VertDuplication | MR_std_vector_MR_MeshBuilder_VertDuplication |
| typedef struct MR_AlphaShapeData | MR_AlphaShapeData |
| typedef struct MR_AlphaShapeStats | MR_AlphaShapeStats |
| typedef struct MR_AlphaShapeNei | MR_AlphaShapeNei |
| typedef struct MR_BallPivotCandidate | MR_BallPivotCandidate |
| typedef struct MR_AlphaShapeData MR_AlphaShapeData |
a point cloud and a ball radius prepared for the search of alpha-shape triangles; the emptiness of a ball is tested in integer coordinates with simulation-of-simplicity resolving the degeneracies, so both the cloud and the radius are needed in integer form as well Generated from class MR::AlphaShapeData. 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).
| typedef struct MR_AlphaShapeNei MR_AlphaShapeNei |
a neighbour of the point v in the search of alpha-shape triangles around it Generated from class MR::AlphaShapeNei. 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).
| typedef struct MR_AlphaShapeStats MR_AlphaShapeStats |
the amount of work done during the search of alpha-shape triangles; every function below only increases the counters, never resets them, so the statistics of several calls can be accumulated in one object Generated from class MR::AlphaShapeStats. 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).
| typedef struct MR_BallPivotCandidate MR_BallPivotCandidate |
a point touchable by a ball together with the edge (vi, vj) in the search of findBallPivotVertex Generated from class MR::BallPivotCandidate. 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).
| typedef struct MR_ConvertToIntVector MR_ConvertToIntVector |
translate then scale float-to-int coordinate converter Generated from class MR::ConvertToIntVector. 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).
| typedef struct MR_PreciseVertCoords MR_PreciseVertCoords |
Generated from class MR::PreciseVertCoords. 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).
| typedef struct MR_std_array_MR_VertId_3 MR_std_array_MR_VertId_3 |
| typedef struct MR_std_optional_MR_Triangulation MR_std_optional_MR_Triangulation |
Stores either a single MR::Triangulation or nothing. 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).
Stores either a single std::array<MR::VertId, 3> or nothing. 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).
| typedef struct MR_std_vector_MR_MeshBuilder_VertDuplication MR_std_vector_MR_MeshBuilder_VertDuplication |
Generated from C++ container std::vector<MR::MeshBuilder::VertDuplication>. 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).
| typedef struct MR_Triangulation MR_Triangulation |
Vector<T> is indexed by size_t Generated from class MR::Triangulation. 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).
| typedef struct MR_Vector_MR_AlphaShapeNei MR_Vector_MR_AlphaShapeNei |
Vector<T> is indexed by size_t Generated from class MR::Vector<MR::AlphaShapeNei>. 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).
| typedef struct MR_Vector_MR_BallPivotCandidate MR_Vector_MR_BallPivotCandidate |
Vector<T> is indexed by size_t Generated from class MR::Vector<MR::BallPivotCandidate>. 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).
| typedef struct MR_Vector_MR_Vector3i_MR_VertId MR_Vector_MR_Vector3i_MR_VertId |
Vector<T> is indexed by size_t Generated from class MR::Vector<MR::Vector3i, MR::VertId>. 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 MR_AlphaShapeData * MR_AlphaShapeData_AssignFromAnother | ( | MR_AlphaShapeData * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_AlphaShapeData * | _other ) |
Generated from method MR::AlphaShapeData::operator=. Parameter _this 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_AlphaShapeData * MR_AlphaShapeData_ConstructFrom | ( | const MR_ConvertToIntVector * | toInt, |
| MR_PassBy | intPoints_pass_by, | ||
| MR_Vector_MR_Vector3i_MR_VertId * | intPoints, | ||
| MR_PassBy | twins_pass_by, | ||
| MR_VertBitSet * | twins, | ||
| int64_t | intRadiusSq, | ||
| float | searchRadius ) |
Constructs MR::AlphaShapeData elementwise. Parameter toInt can not be null. It is a single object. The reference to the parameter toInt might be preserved in the constructed object. The reference to the parameter intPoints might be preserved in the constructed object. The reference to the parameter twins might be preserved in the constructed object. The reference to the parameter intRadiusSq might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_AlphaShapeData_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_AlphaShapeData * MR_AlphaShapeData_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_AlphaShapeData * | _other ) |
Generated from constructor MR::AlphaShapeData::AlphaShapeData. 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_AlphaShapeData_Destroy() to free it when you're done using it.
| MRC_API MR_PreciseVertCoords * MR_AlphaShapeData_coords | ( | const MR_AlphaShapeData * | _this, |
| const MR_PointCloud * | cloud, | ||
| MR_VertId | v ) |
returns point v of the cloud (which must be the cloud given to getAlphaShapeData) together with its integer coordinates Generated from method MR::AlphaShapeData::coords. Parameter _this can not be null. It is a single object. Parameter cloud can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_PreciseVertCoords_Destroy() to free it when you're done using it.
| MRC_API MR_AlphaShapeData * MR_AlphaShapeData_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_AlphaShapeData_Destroy() to free it when you're done using it.
| MRC_API MR_AlphaShapeData * MR_AlphaShapeData_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_AlphaShapeData_DestroyArray(). Use MR_AlphaShapeData_OffsetMutablePtr() and MR_AlphaShapeData_OffsetPtr() to access the array elements.
| MRC_API void MR_AlphaShapeData_Destroy | ( | const MR_AlphaShapeData * | _this | ) |
Destroys a heap-allocated instance of MR_AlphaShapeData. Does nothing if the pointer is null.
| MRC_API void MR_AlphaShapeData_DestroyArray | ( | const MR_AlphaShapeData * | _this | ) |
Destroys a heap-allocated array of MR_AlphaShapeData. Does nothing if the pointer is null.
| MRC_API const MR_Vector_MR_Vector3i_MR_VertId * MR_AlphaShapeData_Get_intPoints | ( | const MR_AlphaShapeData * | _this | ) |
integer coordinates of all valid points of the cloud, or empty if they have to be computed on the fly by toInt Returns a pointer to a member variable of class MR::AlphaShapeData named intPoints. 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 int64_t * MR_AlphaShapeData_Get_intRadiusSq | ( | const MR_AlphaShapeData * | _this | ) |
squared ball radius in the units of toInt's integer grid, not larger than the squared original radius (so that no point inside a ball can be farther than searchRadius from the ball's points), and small enough for the predicates not to overflow Returns a pointer to a member variable of class MR::AlphaShapeData named intRadiusSq. 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_AlphaShapeData_Get_searchRadius | ( | const MR_AlphaShapeData * | _this | ) |
the radius of the neighbourhood of a point to consider; a bit larger than the doubled ball radius to compensate the rounding of integer coordinates Returns a pointer to a member variable of class MR::AlphaShapeData named searchRadius. 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_ConvertToIntVector * MR_AlphaShapeData_Get_toInt | ( | const MR_AlphaShapeData * | _this | ) |
converts cloud's points in integer coordinates Returns a pointer to a member variable of class MR::AlphaShapeData named toInt. 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_AlphaShapeData_Get_twins | ( | const MR_AlphaShapeData * | _this | ) |
the valid points sharing their position in the integer grid with a point of a smaller id, which take part in no search: only the smallest id of a position does; filled together with intPoints, so empty if allPoints was false, and empty if there are no such points Returns a pointer to a member variable of class MR::AlphaShapeData named twins. 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_Vector_MR_Vector3i_MR_VertId * MR_AlphaShapeData_GetMutable_intPoints | ( | MR_AlphaShapeData * | _this | ) |
integer coordinates of all valid points of the cloud, or empty if they have to be computed on the fly by toInt Returns a mutable pointer to a member variable of class MR::AlphaShapeData named intPoints. 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 int64_t * MR_AlphaShapeData_GetMutable_intRadiusSq | ( | MR_AlphaShapeData * | _this | ) |
squared ball radius in the units of toInt's integer grid, not larger than the squared original radius (so that no point inside a ball can be farther than searchRadius from the ball's points), and small enough for the predicates not to overflow Returns a mutable pointer to a member variable of class MR::AlphaShapeData named intRadiusSq. 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_AlphaShapeData_GetMutable_searchRadius | ( | MR_AlphaShapeData * | _this | ) |
the radius of the neighbourhood of a point to consider; a bit larger than the doubled ball radius to compensate the rounding of integer coordinates Returns a mutable pointer to a member variable of class MR::AlphaShapeData named searchRadius. 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_ConvertToIntVector * MR_AlphaShapeData_GetMutable_toInt | ( | MR_AlphaShapeData * | _this | ) |
converts cloud's points in integer coordinates Returns a mutable pointer to a member variable of class MR::AlphaShapeData named toInt. 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_VertBitSet * MR_AlphaShapeData_GetMutable_twins | ( | MR_AlphaShapeData * | _this | ) |
the valid points sharing their position in the integer grid with a point of a smaller id, which take part in no search: only the smallest id of a position does; filled together with intPoints, so empty if allPoints was false, and empty if there are no such points Returns a mutable pointer to a member variable of class MR::AlphaShapeData named twins. 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 bool MR_AlphaShapeData_knowsTwins | ( | const MR_AlphaShapeData * | _this | ) |
whether the twins are known, i.e. the data was prepared with allPoints=true (for a cloud with valid points) Generated from method MR::AlphaShapeData::knowsTwins. Parameter _this can not be null. It is a single object.
| MRC_API MR_AlphaShapeData * MR_AlphaShapeData_OffsetMutablePtr | ( | MR_AlphaShapeData * | 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_AlphaShapeData * MR_AlphaShapeData_OffsetPtr | ( | const MR_AlphaShapeData * | 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_AlphaShapeData_Set_intPoints | ( | MR_AlphaShapeData * | _this, |
| MR_PassBy | value_pass_by, | ||
| MR_Vector_MR_Vector3i_MR_VertId * | value ) |
integer coordinates of all valid points of the cloud, or empty if they have to be computed on the fly by toInt Modifies a member variable of class MR::AlphaShapeData named intPoints. 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 intPoints. When this function is called, this object will drop object references it held previously in intPoints.
| MRC_API void MR_AlphaShapeData_Set_intRadiusSq | ( | MR_AlphaShapeData * | _this, |
| int64_t | value ) |
squared ball radius in the units of toInt's integer grid, not larger than the squared original radius (so that no point inside a ball can be farther than searchRadius from the ball's points), and small enough for the predicates not to overflow Modifies a member variable of class MR::AlphaShapeData named intRadiusSq. 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 intRadiusSq. When this function is called, this object will drop object references it held previously in intRadiusSq.
| MRC_API void MR_AlphaShapeData_Set_searchRadius | ( | MR_AlphaShapeData * | _this, |
| float | value ) |
the radius of the neighbourhood of a point to consider; a bit larger than the doubled ball radius to compensate the rounding of integer coordinates Modifies a member variable of class MR::AlphaShapeData named searchRadius. 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 searchRadius.
| MRC_API void MR_AlphaShapeData_Set_toInt | ( | MR_AlphaShapeData * | _this, |
| const MR_ConvertToIntVector * | value ) |
converts cloud's points in integer coordinates Modifies a member variable of class MR::AlphaShapeData named toInt. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element toInt. When this function is called, this object will drop object references it held previously in toInt.
| MRC_API void MR_AlphaShapeData_Set_twins | ( | MR_AlphaShapeData * | _this, |
| MR_PassBy | value_pass_by, | ||
| MR_VertBitSet * | value ) |
the valid points sharing their position in the integer grid with a point of a smaller id, which take part in no search: only the smallest id of a position does; filled together with intPoints, so empty if allPoints was false, and empty if there are no such points Modifies a member variable of class MR::AlphaShapeData named twins. 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 twins. When this function is called, this object will drop object references it held previously in twins.
| MRC_API MR_AlphaShapeNei * MR_AlphaShapeNei_AssignFromAnother | ( | MR_AlphaShapeNei * | _this, |
| const MR_AlphaShapeNei * | _other ) |
Generated from method MR::AlphaShapeNei::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_AlphaShapeNei * MR_AlphaShapeNei_ConstructFromAnother | ( | const MR_AlphaShapeNei * | _other | ) |
Generated from constructor MR::AlphaShapeNei::AlphaShapeNei. 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_AlphaShapeNei_Destroy() to free it when you're done using it.
| MRC_API MR_AlphaShapeNei * MR_AlphaShapeNei_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_AlphaShapeNei_Destroy() to free it when you're done using it.
| MRC_API MR_AlphaShapeNei * MR_AlphaShapeNei_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_AlphaShapeNei_DestroyArray(). Use MR_AlphaShapeNei_OffsetMutablePtr() and MR_AlphaShapeNei_OffsetPtr() to access the array elements.
| MRC_API void MR_AlphaShapeNei_Destroy | ( | const MR_AlphaShapeNei * | _this | ) |
Destroys a heap-allocated instance of MR_AlphaShapeNei. Does nothing if the pointer is null.
| MRC_API void MR_AlphaShapeNei_DestroyArray | ( | const MR_AlphaShapeNei * | _this | ) |
Destroys a heap-allocated array of MR_AlphaShapeNei. Does nothing if the pointer is null.
| MRC_API const MR_PreciseVertCoords * MR_AlphaShapeNei_Get_coords | ( | const MR_AlphaShapeNei * | _this | ) |
the neighbour's id together with its integer coordinates Returns a pointer to a member variable of class MR::AlphaShapeNei named coords. 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_PreciseVertCoords * MR_AlphaShapeNei_GetMutable_coords | ( | MR_AlphaShapeNei * | _this | ) |
the neighbour's id together with its integer coordinates Returns a mutable pointer to a member variable of class MR::AlphaShapeNei named coords. 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_AlphaShapeNei * MR_AlphaShapeNei_OffsetMutablePtr | ( | MR_AlphaShapeNei * | 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_AlphaShapeNei * MR_AlphaShapeNei_OffsetPtr | ( | const MR_AlphaShapeNei * | 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_AlphaShapeNei_Set_coords | ( | MR_AlphaShapeNei * | _this, |
| const MR_PreciseVertCoords * | value ) |
the neighbour's id together with its integer coordinates Modifies a member variable of class MR::AlphaShapeNei named coords. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element coords. When this function is called, this object will drop object references it held previously in coords.
| MRC_API MR_AlphaShapeStats * MR_AlphaShapeStats_add_assign | ( | MR_AlphaShapeStats * | _this, |
| const MR_AlphaShapeStats * | r ) |
Generated from method MR::AlphaShapeStats::operator+=. Parameter _this can not be null. It is a single object. Parameter r 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 in the return value.
| MRC_API MR_AlphaShapeStats * MR_AlphaShapeStats_AssignFromAnother | ( | MR_AlphaShapeStats * | _this, |
| const MR_AlphaShapeStats * | _other ) |
Generated from method MR::AlphaShapeStats::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_AlphaShapeStats * MR_AlphaShapeStats_ConstructFrom | ( | size_t | collectedNeis, |
| size_t | redundancyTests, | ||
| size_t | redundantNeis, | ||
| size_t | consideredTris, | ||
| size_t | touchableTris, | ||
| size_t | inBallTests, | ||
| size_t | shadowTests, | ||
| size_t | exactShadowTests, | ||
| size_t | shadowedNeis ) |
Constructs MR::AlphaShapeStats elementwise. The reference to the parameter collectedNeis might be preserved in the constructed object. The reference to the parameter redundancyTests might be preserved in the constructed object. The reference to the parameter redundantNeis might be preserved in the constructed object. The reference to the parameter consideredTris might be preserved in the constructed object. The reference to the parameter touchableTris might be preserved in the constructed object. The reference to the parameter inBallTests might be preserved in the constructed object. The reference to the parameter shadowTests might be preserved in the constructed object. The reference to the parameter exactShadowTests might be preserved in the constructed object. The reference to the parameter shadowedNeis might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_AlphaShapeStats_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_AlphaShapeStats * MR_AlphaShapeStats_ConstructFromAnother | ( | const MR_AlphaShapeStats * | _other | ) |
Generated from constructor MR::AlphaShapeStats::AlphaShapeStats. 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_AlphaShapeStats_Destroy() to free it when you're done using it.
| MRC_API MR_AlphaShapeStats * MR_AlphaShapeStats_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_AlphaShapeStats_Destroy() to free it when you're done using it.
| MRC_API MR_AlphaShapeStats * MR_AlphaShapeStats_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_AlphaShapeStats_DestroyArray(). Use MR_AlphaShapeStats_OffsetMutablePtr() and MR_AlphaShapeStats_OffsetPtr() to access the array elements.
| MRC_API void MR_AlphaShapeStats_Destroy | ( | const MR_AlphaShapeStats * | _this | ) |
Destroys a heap-allocated instance of MR_AlphaShapeStats. Does nothing if the pointer is null.
| MRC_API void MR_AlphaShapeStats_DestroyArray | ( | const MR_AlphaShapeStats * | _this | ) |
Destroys a heap-allocated array of MR_AlphaShapeStats. Does nothing if the pointer is null.
| MRC_API const size_t * MR_AlphaShapeStats_Get_collectedNeis | ( | const MR_AlphaShapeStats * | _this | ) |
the number of neighbours found within the search radius (except the known twins), before any of the filters below; the searches around all the points are quadratic in this, so it explains most of the difference in the time spent per point between one cloud and another Returns a pointer to a member variable of class MR::AlphaShapeStats named collectedNeis. 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 size_t * MR_AlphaShapeStats_Get_consideredTris | ( | const MR_AlphaShapeStats * | _this | ) |
the number of triangles considered: the triples of close enough points that were checked for the existence of a ball of the given radius passing via all three of them Returns a pointer to a member variable of class MR::AlphaShapeStats named consideredTris. 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 size_t * MR_AlphaShapeStats_Get_exactShadowTests | ( | const MR_AlphaShapeStats * | _this | ) |
the number of shadow tests not decided by the floating-point rejection, which had to evaluate the exact predicates Returns a pointer to a member variable of class MR::AlphaShapeStats named exactShadowTests. 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 size_t * MR_AlphaShapeStats_Get_inBallTests | ( | const MR_AlphaShapeStats * | _this | ) |
the number of point-in-ball tests performed for the balls of touchable triangles; less than 2 * touchableTris * (points in the neighbourhood) because a ball is not tested further as soon as the first point inside it is found Returns a pointer to a member variable of class MR::AlphaShapeStats named inBallTests. 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 size_t * MR_AlphaShapeStats_Get_redundancyTests | ( | const MR_AlphaShapeStats * | _this | ) |
the number of pairs of neighbours checked for one of them making the other redundant, which is quadratic in the neighbours of a point Returns a pointer to a member variable of class MR::AlphaShapeStats named redundancyTests. 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 size_t * MR_AlphaShapeStats_Get_redundantNeis | ( | const MR_AlphaShapeStats * | _this | ) |
the number of neighbours found redundant by those checks and excluded from the search Returns a pointer to a member variable of class MR::AlphaShapeStats named redundantNeis. 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 size_t * MR_AlphaShapeStats_Get_shadowedNeis | ( | const MR_AlphaShapeStats * | _this | ) |
the number of neighbours found shadowed, which are excluded from the search Returns a pointer to a member variable of class MR::AlphaShapeStats named shadowedNeis. 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 size_t * MR_AlphaShapeStats_Get_shadowTests | ( | const MR_AlphaShapeStats * | _this | ) |
the number of neighbours tested for being shadowed by the balls of a touchable triangle Returns a pointer to a member variable of class MR::AlphaShapeStats named shadowTests. 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 size_t * MR_AlphaShapeStats_Get_touchableTris | ( | const MR_AlphaShapeStats * | _this | ) |
the number of considered triangles touchable by the ball of the given radius, for each of which two balls (one from each side of the triangle) were tested for emptiness Returns a pointer to a member variable of class MR::AlphaShapeStats named touchableTris. 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 size_t * MR_AlphaShapeStats_GetMutable_collectedNeis | ( | MR_AlphaShapeStats * | _this | ) |
the number of neighbours found within the search radius (except the known twins), before any of the filters below; the searches around all the points are quadratic in this, so it explains most of the difference in the time spent per point between one cloud and another Returns a mutable pointer to a member variable of class MR::AlphaShapeStats named collectedNeis. 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 size_t * MR_AlphaShapeStats_GetMutable_consideredTris | ( | MR_AlphaShapeStats * | _this | ) |
the number of triangles considered: the triples of close enough points that were checked for the existence of a ball of the given radius passing via all three of them Returns a mutable pointer to a member variable of class MR::AlphaShapeStats named consideredTris. 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 size_t * MR_AlphaShapeStats_GetMutable_exactShadowTests | ( | MR_AlphaShapeStats * | _this | ) |
the number of shadow tests not decided by the floating-point rejection, which had to evaluate the exact predicates Returns a mutable pointer to a member variable of class MR::AlphaShapeStats named exactShadowTests. 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 size_t * MR_AlphaShapeStats_GetMutable_inBallTests | ( | MR_AlphaShapeStats * | _this | ) |
the number of point-in-ball tests performed for the balls of touchable triangles; less than 2 * touchableTris * (points in the neighbourhood) because a ball is not tested further as soon as the first point inside it is found Returns a mutable pointer to a member variable of class MR::AlphaShapeStats named inBallTests. 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 size_t * MR_AlphaShapeStats_GetMutable_redundancyTests | ( | MR_AlphaShapeStats * | _this | ) |
the number of pairs of neighbours checked for one of them making the other redundant, which is quadratic in the neighbours of a point Returns a mutable pointer to a member variable of class MR::AlphaShapeStats named redundancyTests. 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 size_t * MR_AlphaShapeStats_GetMutable_redundantNeis | ( | MR_AlphaShapeStats * | _this | ) |
the number of neighbours found redundant by those checks and excluded from the search Returns a mutable pointer to a member variable of class MR::AlphaShapeStats named redundantNeis. 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 size_t * MR_AlphaShapeStats_GetMutable_shadowedNeis | ( | MR_AlphaShapeStats * | _this | ) |
the number of neighbours found shadowed, which are excluded from the search Returns a mutable pointer to a member variable of class MR::AlphaShapeStats named shadowedNeis. 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 size_t * MR_AlphaShapeStats_GetMutable_shadowTests | ( | MR_AlphaShapeStats * | _this | ) |
the number of neighbours tested for being shadowed by the balls of a touchable triangle Returns a mutable pointer to a member variable of class MR::AlphaShapeStats named shadowTests. 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 size_t * MR_AlphaShapeStats_GetMutable_touchableTris | ( | MR_AlphaShapeStats * | _this | ) |
the number of considered triangles touchable by the ball of the given radius, for each of which two balls (one from each side of the triangle) were tested for emptiness Returns a mutable pointer to a member variable of class MR::AlphaShapeStats named touchableTris. 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_AlphaShapeStats * MR_AlphaShapeStats_OffsetMutablePtr | ( | MR_AlphaShapeStats * | 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_AlphaShapeStats * MR_AlphaShapeStats_OffsetPtr | ( | const MR_AlphaShapeStats * | 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_AlphaShapeStats_Set_collectedNeis | ( | MR_AlphaShapeStats * | _this, |
| size_t | value ) |
the number of neighbours found within the search radius (except the known twins), before any of the filters below; the searches around all the points are quadratic in this, so it explains most of the difference in the time spent per point between one cloud and another Modifies a member variable of class MR::AlphaShapeStats named collectedNeis. 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 collectedNeis. When this function is called, this object will drop object references it held previously in collectedNeis.
| MRC_API void MR_AlphaShapeStats_Set_consideredTris | ( | MR_AlphaShapeStats * | _this, |
| size_t | value ) |
the number of triangles considered: the triples of close enough points that were checked for the existence of a ball of the given radius passing via all three of them Modifies a member variable of class MR::AlphaShapeStats named consideredTris. 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 consideredTris. When this function is called, this object will drop object references it held previously in consideredTris.
| MRC_API void MR_AlphaShapeStats_Set_exactShadowTests | ( | MR_AlphaShapeStats * | _this, |
| size_t | value ) |
the number of shadow tests not decided by the floating-point rejection, which had to evaluate the exact predicates Modifies a member variable of class MR::AlphaShapeStats named exactShadowTests. 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 exactShadowTests. When this function is called, this object will drop object references it held previously in exactShadowTests.
| MRC_API void MR_AlphaShapeStats_Set_inBallTests | ( | MR_AlphaShapeStats * | _this, |
| size_t | value ) |
the number of point-in-ball tests performed for the balls of touchable triangles; less than 2 * touchableTris * (points in the neighbourhood) because a ball is not tested further as soon as the first point inside it is found Modifies a member variable of class MR::AlphaShapeStats named inBallTests. 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 inBallTests. When this function is called, this object will drop object references it held previously in inBallTests.
| MRC_API void MR_AlphaShapeStats_Set_redundancyTests | ( | MR_AlphaShapeStats * | _this, |
| size_t | value ) |
the number of pairs of neighbours checked for one of them making the other redundant, which is quadratic in the neighbours of a point Modifies a member variable of class MR::AlphaShapeStats named redundancyTests. 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 redundancyTests. When this function is called, this object will drop object references it held previously in redundancyTests.
| MRC_API void MR_AlphaShapeStats_Set_redundantNeis | ( | MR_AlphaShapeStats * | _this, |
| size_t | value ) |
the number of neighbours found redundant by those checks and excluded from the search Modifies a member variable of class MR::AlphaShapeStats named redundantNeis. 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 redundantNeis. When this function is called, this object will drop object references it held previously in redundantNeis.
| MRC_API void MR_AlphaShapeStats_Set_shadowedNeis | ( | MR_AlphaShapeStats * | _this, |
| size_t | value ) |
the number of neighbours found shadowed, which are excluded from the search Modifies a member variable of class MR::AlphaShapeStats named shadowedNeis. 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 shadowedNeis. When this function is called, this object will drop object references it held previously in shadowedNeis.
| MRC_API void MR_AlphaShapeStats_Set_shadowTests | ( | MR_AlphaShapeStats * | _this, |
| size_t | value ) |
the number of neighbours tested for being shadowed by the balls of a touchable triangle Modifies a member variable of class MR::AlphaShapeStats named shadowTests. 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 shadowTests. When this function is called, this object will drop object references it held previously in shadowTests.
| MRC_API void MR_AlphaShapeStats_Set_touchableTris | ( | MR_AlphaShapeStats * | _this, |
| size_t | value ) |
the number of considered triangles touchable by the ball of the given radius, for each of which two balls (one from each side of the triangle) were tested for emptiness Modifies a member variable of class MR::AlphaShapeStats named touchableTris. 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 touchableTris. When this function is called, this object will drop object references it held previously in touchableTris.
| MRC_API MR_BallPivotCandidate * MR_BallPivotCandidate_AssignFromAnother | ( | MR_BallPivotCandidate * | _this, |
| const MR_BallPivotCandidate * | _other ) |
Generated from method MR::BallPivotCandidate::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_BallPivotCandidate * MR_BallPivotCandidate_ConstructFrom | ( | const MR_PreciseVertCoords * | coords, |
| bool | cwFromVk ) |
Constructs MR::BallPivotCandidate elementwise. Parameter coords can not be null. It is a single object. The reference to the parameter coords might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_BallPivotCandidate_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_BallPivotCandidate * MR_BallPivotCandidate_ConstructFromAnother | ( | const MR_BallPivotCandidate * | _other | ) |
Generated from constructor MR::BallPivotCandidate::BallPivotCandidate. 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_BallPivotCandidate_Destroy() to free it when you're done using it.
| MRC_API MR_BallPivotCandidate * MR_BallPivotCandidate_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_BallPivotCandidate_Destroy() to free it when you're done using it.
| MRC_API MR_BallPivotCandidate * MR_BallPivotCandidate_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_BallPivotCandidate_DestroyArray(). Use MR_BallPivotCandidate_OffsetMutablePtr() and MR_BallPivotCandidate_OffsetPtr() to access the array elements.
| MRC_API void MR_BallPivotCandidate_Destroy | ( | const MR_BallPivotCandidate * | _this | ) |
Destroys a heap-allocated instance of MR_BallPivotCandidate. Does nothing if the pointer is null.
| MRC_API void MR_BallPivotCandidate_DestroyArray | ( | const MR_BallPivotCandidate * | _this | ) |
Destroys a heap-allocated array of MR_BallPivotCandidate. Does nothing if the pointer is null.
| MRC_API const MR_PreciseVertCoords * MR_BallPivotCandidate_Get_coords | ( | const MR_BallPivotCandidate * | _this | ) |
the point's id together with its integer coordinates Returns a pointer to a member variable of class MR::BallPivotCandidate named coords. 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 bool * MR_BallPivotCandidate_Get_cwFromVk | ( | const MR_BallPivotCandidate * | _this | ) |
orient3d( vi, vj, vk, this point ): whether the rotation around the line from vi to vj from the half-plane via vk to the half-plane via this point is clockwise Returns a pointer to a member variable of class MR::BallPivotCandidate named cwFromVk. 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_PreciseVertCoords * MR_BallPivotCandidate_GetMutable_coords | ( | MR_BallPivotCandidate * | _this | ) |
the point's id together with its integer coordinates Returns a mutable pointer to a member variable of class MR::BallPivotCandidate named coords. 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 bool * MR_BallPivotCandidate_GetMutable_cwFromVk | ( | MR_BallPivotCandidate * | _this | ) |
orient3d( vi, vj, vk, this point ): whether the rotation around the line from vi to vj from the half-plane via vk to the half-plane via this point is clockwise Returns a mutable pointer to a member variable of class MR::BallPivotCandidate named cwFromVk. 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_BallPivotCandidate * MR_BallPivotCandidate_OffsetMutablePtr | ( | MR_BallPivotCandidate * | 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_BallPivotCandidate * MR_BallPivotCandidate_OffsetPtr | ( | const MR_BallPivotCandidate * | 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_BallPivotCandidate_Set_coords | ( | MR_BallPivotCandidate * | _this, |
| const MR_PreciseVertCoords * | value ) |
the point's id together with its integer coordinates Modifies a member variable of class MR::BallPivotCandidate named coords. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element coords. When this function is called, this object will drop object references it held previously in coords.
| MRC_API void MR_BallPivotCandidate_Set_cwFromVk | ( | MR_BallPivotCandidate * | _this, |
| bool | value ) |
orient3d( vi, vj, vk, this point ): whether the rotation around the line from vi to vj from the half-plane via vk to the half-plane via this point is clockwise Modifies a member variable of class MR::BallPivotCandidate named cwFromVk. 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 cwFromVk.
| MRC_API MR_Mesh * MR_findAlphaShape_4 | ( | const MR_PointCloud * | cloud, |
| float | radius, | ||
| MR_std_vector_MR_MeshBuilder_VertDuplication * | dups, | ||
| MR_AlphaShapeStats * | stats ) |
Generated from function MR::findAlphaShape. Parameter cloud can not be null. It is a single object. Parameter dups defaults to a null pointer in C++. Parameter stats defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_Mesh_Destroy() to free it when you're done using it.
| MRC_API MR_std_optional_MR_Mesh * MR_findAlphaShape_5 | ( | const MR_PointCloud * | cloud, |
| float | radius, | ||
| const MR_std_function_bool_from_float * | cb, | ||
| MR_std_vector_MR_MeshBuilder_VertDuplication * | dups, | ||
| MR_AlphaShapeStats * | stats ) |
builds alpha-shape mesh with negative alpha = -1/radius; the mesh vertices are the cloud points with the same ids plus the ones appended by the duplication of non-manifold vertices, which
| dups | (if given) receives Generated from function MR::findAlphaShape. Parameter cloud can not be null. It is a single object. Parameter cb can not be null. It is a single object. Parameter dups defaults to a null pointer in C++. Parameter stats defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_std_optional_MR_Mesh_Destroy() to free it when you're done using it. |
| MRC_API MR_Triangulation * MR_findAlphaShapeAllTriangles_3_float | ( | const MR_PointCloud * | cloud, |
| float | radius, | ||
| MR_AlphaShapeStats * | stats ) |
Generated from function MR::findAlphaShapeAllTriangles. Parameter cloud can not be null. It is a single object. Parameter stats defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_Triangulation_Destroy() to free it when you're done using it.
| MRC_API MR_Triangulation * MR_findAlphaShapeAllTriangles_3_MR_AlphaShapeData | ( | const MR_PointCloud * | cloud, |
| const MR_AlphaShapeData * | data, | ||
| MR_AlphaShapeStats * | stats ) |
Generated from function MR::findAlphaShapeAllTriangles. Parameter cloud can not be null. It is a single object. Parameter data can not be null. It is a single object. Parameter stats defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_Triangulation_Destroy() to free it when you're done using it.
| MRC_API MR_std_optional_MR_Triangulation * MR_findAlphaShapeAllTriangles_4_float | ( | const MR_PointCloud * | cloud, |
| float | radius, | ||
| const MR_std_function_bool_from_float * | cb, | ||
| MR_AlphaShapeStats * | stats ) |
finds all triangles of alpha-shape with negative alpha = -1/radius Generated from function MR::findAlphaShapeAllTriangles. Parameter cloud can not be null. It is a single object. Parameter cb can not be null. It is a single object. Parameter stats defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_std_optional_MR_Triangulation_Destroy() to free it when you're done using it.
| MRC_API MR_std_optional_MR_Triangulation * MR_findAlphaShapeAllTriangles_4_MR_AlphaShapeData | ( | const MR_PointCloud * | cloud, |
| const MR_AlphaShapeData * | data, | ||
| const MR_std_function_bool_from_float * | cb, | ||
| MR_AlphaShapeStats * | stats ) |
finds all triangles of alpha-shape given the data prepared by getAlphaShapeData for the same cloud (preferably with allPoints=true, since the triangles around all points will be searched) Generated from function MR::findAlphaShapeAllTriangles. Parameter cloud can not be null. It is a single object. Parameter data can not be null. It is a single object. Parameter cb can not be null. It is a single object. Parameter stats defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_std_optional_MR_Triangulation_Destroy() to free it when you're done using it.
| MRC_API void MR_findAlphaShapeNeiTriangles | ( | const MR_PointCloud * | cloud, |
| MR_VertId | v, | ||
| const MR_AlphaShapeData * | data, | ||
| MR_Triangulation * | appendTris, | ||
| MR_Vector_MR_AlphaShapeNei * | neis, | ||
| bool | onlyLargerVids, | ||
| MR_AlphaShapeStats * | stats ) |
finds all triangles of alpha-shape with negative alpha = -1/radius, where each triangle contains point v and two other points; the valid points sharing one position in the integer grid are merged: only the point with the smallest id among them appears in the triangles (in particular, v itself gets no triangles if it has such a twin), so the triangles found around all the points agree Generated from function MR::findAlphaShapeNeiTriangles. Parameter cloud can not be null. It is a single object. Parameter data can not be null. It is a single object. Parameter appendTris can not be null. It is a single object. Parameter neis can not be null. It is a single object. Parameter stats defaults to a null pointer in C++.
| MRC_API MR_std_optional_MR_Triangulation * MR_findBallPivotingComponent | ( | const MR_PointCloud * | cloud, |
| const MR_std_array_MR_VertId_3 * | seed, | ||
| const MR_AlphaShapeData * | data, | ||
| const MR_std_function_bool_from_float * | cb ) |
finds all the triangles reachable by the ball pivoting (see findBallPivotVertex) from the given seed triangle, whose ball on the positive side must be empty, e.g. a triangle of findAlphaShapeNeiTriangles or findBallPivotingSeed; all triangles have their empty balls on the positive side and are rotated to start from their smallest id (the seed too), the result is sorted; the pivoting goes in parallel waves over the edges of the triangles found by the previous wave Generated from function MR::findBallPivotingComponent. Parameter cloud can not be null. It is a single object. Parameter seed can not be null. It is a single object. Parameter data can not be null. It is a single object. Parameter cb is a single object. Parameter cb has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_std_optional_MR_Triangulation_Destroy() to free it when you're done using it.
| MRC_API MR_Mesh * MR_findBallPivotingMesh_4 | ( | const MR_PointCloud * | cloud, |
| float | radius, | ||
| const bool * | allComponents, | ||
| MR_std_vector_MR_MeshBuilder_VertDuplication * | dups ) |
Generated from function MR::findBallPivotingMesh. Parameter cloud can not be null. It is a single object. Parameter allComponents has a default argument: false, pass a null pointer to use it. Parameter dups defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_Mesh_Destroy() to free it when you're done using it.
| MRC_API MR_std_optional_MR_Mesh * MR_findBallPivotingMesh_5 | ( | const MR_PointCloud * | cloud, |
| float | radius, | ||
| bool | allComponents, | ||
| const MR_std_function_bool_from_float * | cb, | ||
| MR_std_vector_MR_MeshBuilder_VertDuplication * | dups ) |
builds the mesh of the outer shape of the cloud by the ball pivoting with the ball of given radius, see findBallPivotingTriangles; the mesh vertices are the cloud points with the same ids plus the ones appended by the duplication of non-manifold vertices, which
| dups | (if given) receives Generated from function MR::findBallPivotingMesh. Parameter cloud can not be null. It is a single object. Parameter cb can not be null. It is a single object. Parameter dups defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_std_optional_MR_Mesh_Destroy() to free it when you're done using it. |
| MRC_API MR_std_optional_std_array_MR_VertId_3 * MR_findBallPivotingSeed | ( | const MR_PointCloud * | cloud, |
| MR_VertId | v, | ||
| const MR_Vector3f * | dir, | ||
| const MR_AlphaShapeData * | data, | ||
| MR_Triangulation * | tris, | ||
| MR_Vector_MR_AlphaShapeNei * | neis ) |
finds the first triangle for the ball pivoting among the alpha-shape triangles of point v: the one with its empty ball (on the positive side) farthest in direction dir, touched first by the ball coming from that direction if v is the extreme point of the cloud in it; returns std::nullopt if v has no alpha-shape triangles; with few points around v, the triangle can be in a region of empty balls that the incoming ball does not reach, e.g. on the inner side of a closed shell Generated from function MR::findBallPivotingSeed. Parameter cloud can not be null. It is a single object. Parameter dir can not be null. It is a single object. Parameter data can not be null. It is a single object. Parameter tris can not be null. It is a single object. Parameter neis can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_optional_std_array_MR_VertId_3_Destroy() to free it when you're done using it.
| MRC_API MR_std_optional_MR_Triangulation * MR_findBallPivotingTriangles | ( | const MR_PointCloud * | cloud, |
| const MR_AlphaShapeData * | data, | ||
| const bool * | allComponents, | ||
| const MR_std_function_bool_from_float * | cb ) |
finds the outer shape of the cloud by the ball pivoting: findBallPivotingComponent from findBallPivotingSeed of the extreme point in each of -x, +x, -y, +y, -z, +z not in a piece found before, returning the largest piece (sorted); points without alpha-shape triangles (e.g. far outliers) are skipped; unlike findAlphaShape, no inner side of a closed shell is found; small clusters of noise farthest in all six directions hide the shape, then take the largest of allComponents
| allComponents | whether to restart the pivoting in -x order from every point not in a found piece and return all pieces; then a few points left out of a shell can regrow its inner side, and it can be slower than findAlphaShape Generated from function MR::findBallPivotingTriangles. Parameter cloud can not be null. It is a single object. Parameter data can not be null. It is a single object. Parameter allComponents has a default argument: false, pass a null pointer to use it. Parameter cb is a single object. Parameter cb has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_std_optional_MR_Triangulation_Destroy() to free it when you're done using it. |
| MRC_API MR_VertId MR_findBallPivotVertex | ( | const MR_PointCloud * | cloud, |
| MR_VertId | vi, | ||
| MR_VertId | vj, | ||
| MR_VertId | vk, | ||
| const MR_AlphaShapeData * | data, | ||
| MR_Vector_MR_BallPivotCandidate * | cands ) |
pivots the ball of the given radius from triangle (vi, vj, vk) over its edge (vi, vj): among the points touchable by a ball together with vi and vj (except vk), ordered by the rotation of their half-planes counter-clockwise from vk's one around the line directed from vi to vj (as seen by the viewer the line's direction points at), finds the first point x such that the ball via vi, vj and x with the center on vk's side of the half-plane of x has none of those points nor vk strictly inside; the predicates are exact with simulation-of-simplicity resolving the ties; the points sharing a position in the integer grid are merged as in findAlphaShapeNeiTriangles: only the smallest id of a position is returned, and never a twin of vi, vj or vk; returns vk if no such point exists: the ball rotates to the other side of triangle (vi, vj, vk) touching no other point; the ball via vi, vj and vk with the center on the positive side of that triangle must exist and be empty, otherwise the returned point is not the one touched first by the rotating ball; in particular, for a triangle (vi, vj, vk) of findAlphaShapeAllTriangles, (vj, vi, x) is one of them as well, x being the returned point Generated from function MR::findBallPivotVertex. Parameter cloud can not be null. It is a single object. Parameter data can not be null. It is a single object. Parameter cands can not be null. It is a single object.
| MRC_API MR_AlphaShapeData * MR_getAlphaShapeData | ( | const MR_PointCloud * | cloud, |
| float | radius, | ||
| bool | allPoints ) |
prepares the data for the search of alpha-shape triangles with negative alpha = -1/radius in the cloud
| allPoints | whether to convert all valid points of the cloud in integer coordinates in parallel and to find the twins among them, which pays off if the triangles around many points will be searched Generated from function MR::getAlphaShapeData. Parameter cloud can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_AlphaShapeData_Destroy() to free it when you're done using it. |