MeshLib C Docs
Loading...
Searching...
No Matches
MRPointsProject.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRId.h>
4#include <MRCMisc/common.h>
5#include <MRCMisc/compare.h>
6#include <MRCMisc/exports.h>
7
8#include <stdbool.h>
9#include <stddef.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_AABBTreePoints MR_AABBTreePoints; // Defined in `#include <MRCMesh/MRAABBTreePoints.h>`.
16typedef struct MR_AffineXf3f MR_AffineXf3f; // Defined in `#include <MRCMesh/MRAffineXf.h>`.
17typedef struct MR_BitSet MR_BitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
18typedef struct MR_Buffer_MR_VertId MR_Buffer_MR_VertId; // Defined in `#include <MRCMesh/MRBuffer.h>`.
19typedef struct MR_FewSmallest_MR_PointsProjectionResult MR_FewSmallest_MR_PointsProjectionResult; // Defined in `#include <MRCMesh/MRFewSmallest.h>`.
20typedef struct MR_PointCloud MR_PointCloud; // Defined in `#include <MRCMesh/MRPointCloud.h>`.
21typedef struct MR_PointCloudPart MR_PointCloudPart; // Defined in `#include <MRCMesh/MRPointCloudPart.h>`.
22typedef struct MR_Vector3f MR_Vector3f; // Defined in `#include <MRCMesh/MRVector3.h>`.
23typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
24typedef struct MR_VertCoords MR_VertCoords; // Defined in `#include <MRCMesh/MRVector.h>`.
25typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
26typedef struct MR_std_function_bool_from_MR_VertId MR_std_function_bool_from_MR_VertId; // Defined in `#include <MRCMisc/std_function_bool_from_MR_VertId.h>`.
27typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
28typedef struct MR_std_pair_MR_VertId_MR_VertId MR_std_pair_MR_VertId_MR_VertId; // Defined in `#include <MRCMisc/std_pair_MR_VertId_MR_VertId.h>`.
29typedef struct MR_std_vector_MR_PointsProjectionResult MR_std_vector_MR_PointsProjectionResult; // Defined in `#include <MRCMisc/std_vector_MR_PointsProjectionResult.h>`.
30
31
35
40
48
56
63
69
76
83
90
97
101
106
112
116
120
126
129
132
140
145
150
155
160
165
170
175
191MRC_API MR_PointsProjectionResult *MR_findProjectionOnPoints_6(const MR_Vector3f *pt, const MR_PointCloudPart *pcp, const float *upDistLimitSq, const MR_AffineXf3f *xf, const float *loDistLimitSq, MR_PassBy skipCb_pass_by, MR_std_function_bool_from_MR_VertId *skipCb);
192
210MRC_API MR_PointsProjectionResult *MR_findProjectionOnPoints_7(const MR_Vector3f *pt, const MR_AABBTreePoints *tree, const float *upDistLimitSq, const MR_AffineXf3f *xf, const float *loDistLimitSq, const MR_VertBitSet *region, MR_PassBy skipCb_pass_by, MR_std_function_bool_from_MR_VertId *skipCb);
211
225MRC_API void MR_findFewClosestPoints(const MR_Vector3f *pt, const MR_PointCloud *pc, MR_FewSmallest_MR_PointsProjectionResult *res, const float *upDistLimitSq, const MR_AffineXf3f *xf, const float *loDistLimitSq);
226
238
246
253
260
267
274
281
288
295
301
308
315
321
328
335
341
348
355
362
369
373
378
385MRC_API MR_FindProjectionOnPointsSettings *MR_FindProjectionOnPointsSettings_ConstructFrom(const MR_BitSet *valid, const MR_AffineXf3f *xf, float upDistLimitSq, float loDistLimitSq, bool skipSameIndex, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb);
386
390
394
399
402
405
412
415
418
425
434
438MRC_API size_t MR_IPointsProjector_projectionsHeapBytes(const MR_IPointsProjector *_this, size_t numProjections);
439
443
447
451
456
460
464
469
473
479
484
490
495
503
510
515
518
521
528
535
544
548MRC_API size_t MR_PointsProjector_projectionsHeapBytes(const MR_PointsProjector *_this, size_t numProjections);
549
550#ifdef __cplusplus
551} // extern "C"
552#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_VertCoords MR_VertCoords
Definition MRAABBTreePoints.h:21
struct MR_AABBTreePoints MR_AABBTreePoints
Definition MRAABBTreePoints.h:37
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:26
struct MR_PointCloudPart MR_PointCloudPart
Definition MRBestFit.h:23
struct MR_BitSet MR_BitSet
Definition MRBitSet.h:290
struct MR_Buffer_MR_VertId MR_Buffer_MR_VertId
std::vector<V>-like container that is 1) resized without initialization of its elements,...
Definition MRBuffer.h:79
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:27
struct MR_PointCloud MR_PointCloud
Definition MRCtm.h:20
struct MR_std_function_bool_from_MR_VertId MR_std_function_bool_from_MR_VertId
Definition MREnumNeighbours.h:19
struct MR_FewSmallest_MR_PointsProjectionResult MR_FewSmallest_MR_PointsProjectionResult
Definition MRFewSmallest.h:20
struct MR_PointsProjectionResult MR_PointsProjectionResult
Definition MRFewSmallest.h:13
struct MR_std_vector_MR_PointsProjectionResult MR_std_vector_MR_PointsProjectionResult
Definition MRFewSmallest.h:14
MRC_API void MR_findFewClosestPoints(const MR_Vector3f *pt, const MR_PointCloud *pc, MR_FewSmallest_MR_PointsProjectionResult *res, const float *upDistLimitSq, const MR_AffineXf3f *xf, const float *loDistLimitSq)
finds a number of the closest points in the cloud (as configured in
MRC_API MR_PointsProjector * MR_PointsProjector_OffsetMutablePtr(MR_PointsProjector *ptr, ptrdiff_t i)
MRC_API bool MR_greater_MR_PointsProjectionResult(const MR_PointsProjectionResult *_this, const MR_PointsProjectionResult *_1)
MRC_API MR_std_partial_ordering MR_compare_three_way_MR_PointsProjectionResult(const MR_PointsProjectionResult *_this, const MR_PointsProjectionResult *_1)
MRC_API MR_std_pair_MR_VertId_MR_VertId * MR_findTwoClosestPoints(const MR_PointCloud *pc, const MR_std_function_bool_from_float *progress)
MRC_API bool MR_less_equal_MR_PointsProjectionResult(const MR_PointsProjectionResult *_this, const MR_PointsProjectionResult *_1)
MRC_API void MR_FindProjectionOnPointsSettings_DestroyArray(const MR_FindProjectionOnPointsSettings *_this)
Destroys a heap-allocated array of MR_FindProjectionOnPointsSettings. Does nothing if the pointer is ...
MRC_API MR_PointsProjectionResult * MR_PointsProjectionResult_ConstructFromAnother(const MR_PointsProjectionResult *_other)
MRC_API const MR_IPointsProjector * MR_PointsProjector_UpcastTo_MR_IPointsProjector(const MR_PointsProjector *object)
MRC_API const MR_BitSet ** MR_FindProjectionOnPointsSettings_GetMutable_valid(MR_FindProjectionOnPointsSettings *_this)
MRC_API MR_expected_void_std_string * MR_PointsProjector_setPointCloud(MR_PointsProjector *_this, const MR_PointCloud *pointCloud)
MRC_API bool * MR_FindProjectionOnPointsSettings_GetMutable_skipSameIndex(MR_FindProjectionOnPointsSettings *_this)
MRC_API void MR_FindProjectionOnPointsSettings_Set_loDistLimitSq(MR_FindProjectionOnPointsSettings *_this, float value)
MRC_API void MR_IPointsProjector_DestroyArray(const MR_IPointsProjector *_this)
Destroys a heap-allocated array of MR_IPointsProjector. Does nothing if the pointer is null.
MRC_API MR_PointsProjectionResult * MR_PointsProjectionResult_AssignFromAnother(MR_PointsProjectionResult *_this, const MR_PointsProjectionResult *_other)
MRC_API MR_PointsProjector * MR_PointsProjector_DefaultConstruct(void)
MRC_API void MR_PointsProjectionResult_Set_vId(MR_PointsProjectionResult *_this, MR_VertId value)
MRC_API const MR_VertId * MR_PointsProjectionResult_Get_vId(const MR_PointsProjectionResult *_this)
struct MR_PointsProjector MR_PointsProjector
Definition MRPointsProject.h:55
MRC_API const bool * MR_FindProjectionOnPointsSettings_Get_skipSameIndex(const MR_FindProjectionOnPointsSettings *_this)
MRC_API void MR_PointsProjectionResult_Destroy(const MR_PointsProjectionResult *_this)
Destroys a heap-allocated instance of MR_PointsProjectionResult. Does nothing if the pointer is null.
MRC_API void MR_PointsProjector_Destroy(const MR_PointsProjector *_this)
Destroys a heap-allocated instance of MR_PointsProjector. Does nothing if the pointer is null.
MRC_API MR_FindProjectionOnPointsSettings * MR_FindProjectionOnPointsSettings_DefaultConstruct(void)
MRC_API void MR_PointsProjectionResult_DestroyArray(const MR_PointsProjectionResult *_this)
Destroys a heap-allocated array of MR_PointsProjectionResult. Does nothing if the pointer is null.
MRC_API const MR_BitSet *const * MR_FindProjectionOnPointsSettings_Get_valid(const MR_FindProjectionOnPointsSettings *_this)
MRC_API MR_PointsProjector * MR_PointsProjector_AssignFromAnother(MR_PointsProjector *_this, MR_PassBy _other_pass_by, MR_PointsProjector *_other)
MRC_API MR_expected_void_std_string * MR_IPointsProjector_findProjections(const MR_IPointsProjector *_this, MR_std_vector_MR_PointsProjectionResult *results, const MR_VertCoords *points, const MR_FindProjectionOnPointsSettings *settings)
MRC_API MR_PointsProjector * MR_PointsProjector_MutableDynamicDowncastFromOrFail_MR_IPointsProjector(MR_IPointsProjector *object)
MRC_API const float * MR_FindProjectionOnPointsSettings_Get_upDistLimitSq(const MR_FindProjectionOnPointsSettings *_this)
MRC_API void MR_FindProjectionOnPointsSettings_Set_cb(MR_FindProjectionOnPointsSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API const MR_AffineXf3f *const * MR_FindProjectionOnPointsSettings_Get_xf(const MR_FindProjectionOnPointsSettings *_this)
MRC_API bool MR_less_MR_PointsProjectionResult(const MR_PointsProjectionResult *_this, const MR_PointsProjectionResult *_1)
MRC_API float * MR_FindProjectionOnPointsSettings_GetMutable_upDistLimitSq(MR_FindProjectionOnPointsSettings *_this)
struct MR_std_pair_MR_VertId_MR_VertId MR_std_pair_MR_VertId_MR_VertId
Definition MRPointsProject.h:28
MRC_API MR_PointsProjector * MR_PointsProjector_DefaultConstructArray(size_t num_elems)
MRC_API MR_PointsProjector * MR_PointsProjector_MutableStaticDowncastFrom_MR_IPointsProjector(MR_IPointsProjector *object)
MRC_API const MR_FindProjectionOnPointsSettings * MR_FindProjectionOnPointsSettings_OffsetPtr(const MR_FindProjectionOnPointsSettings *ptr, ptrdiff_t i)
MRC_API void MR_IPointsProjector_Destroy(const MR_IPointsProjector *_this)
Destroys a heap-allocated instance of MR_IPointsProjector. Does nothing if the pointer is null.
MRC_API MR_PointsProjectionResult * MR_PointsProjectionResult_DefaultConstruct(void)
MRC_API const MR_PointsProjector * MR_PointsProjector_StaticDowncastFrom_MR_IPointsProjector(const MR_IPointsProjector *object)
MRC_API MR_expected_void_std_string * MR_PointsProjector_findProjections(const MR_PointsProjector *_this, MR_std_vector_MR_PointsProjectionResult *results, const MR_VertCoords *points, const MR_FindProjectionOnPointsSettings *settings)
MRC_API float * MR_FindProjectionOnPointsSettings_GetMutable_loDistLimitSq(MR_FindProjectionOnPointsSettings *_this)
MRC_API MR_expected_void_std_string * MR_IPointsProjector_setPointCloud(MR_IPointsProjector *_this, const MR_PointCloud *pointCloud)
MRC_API size_t MR_IPointsProjector_projectionsHeapBytes(const MR_IPointsProjector *_this, size_t numProjections)
MRC_API const MR_PointsProjector * MR_PointsProjector_DynamicDowncastFromOrFail_MR_IPointsProjector(const MR_IPointsProjector *object)
MRC_API size_t MR_PointsProjector_projectionsHeapBytes(const MR_PointsProjector *_this, size_t numProjections)
MRC_API MR_Buffer_MR_VertId * MR_findNClosestPointsPerPoint(const MR_PointCloud *pc, int numNei, const MR_std_function_bool_from_float *progress)
finds given number of closest points (excluding itself) to each valid point in the cloud;
MRC_API void MR_PointsProjectionResult_Set_distSq(MR_PointsProjectionResult *_this, float value)
struct MR_FindProjectionOnPointsSettings MR_FindProjectionOnPointsSettings
Definition MRPointsProject.h:39
MRC_API void MR_FindProjectionOnPointsSettings_Set_xf(MR_FindProjectionOnPointsSettings *_this, const MR_AffineXf3f *value)
MRC_API MR_FindProjectionOnPointsSettings * MR_FindProjectionOnPointsSettings_ConstructFrom(const MR_BitSet *valid, const MR_AffineXf3f *xf, float upDistLimitSq, float loDistLimitSq, bool skipSameIndex, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
MRC_API float * MR_PointsProjectionResult_GetMutable_distSq(MR_PointsProjectionResult *_this)
MRC_API MR_PointsProjectionResult * MR_PointsProjectionResult_DefaultConstructArray(size_t num_elems)
MRC_API MR_PointsProjectionResult * MR_findProjectionOnPoints_7(const MR_Vector3f *pt, const MR_AABBTreePoints *tree, const float *upDistLimitSq, const MR_AffineXf3f *xf, const float *loDistLimitSq, const MR_VertBitSet *region, MR_PassBy skipCb_pass_by, MR_std_function_bool_from_MR_VertId *skipCb)
computes the closest point on AABBTreePoints to given point
MRC_API void MR_FindProjectionOnPointsSettings_Set_upDistLimitSq(MR_FindProjectionOnPointsSettings *_this, float value)
MRC_API MR_PointsProjector * MR_PointsProjector_ConstructFromAnother(MR_PassBy _other_pass_by, MR_PointsProjector *_other)
MRC_API const MR_PointsProjectionResult * MR_PointsProjectionResult_OffsetPtr(const MR_PointsProjectionResult *ptr, ptrdiff_t i)
MRC_API const float * MR_PointsProjectionResult_Get_distSq(const MR_PointsProjectionResult *_this)
MRC_API MR_VertId * MR_PointsProjectionResult_GetMutable_vId(MR_PointsProjectionResult *_this)
MRC_API MR_FindProjectionOnPointsSettings * MR_FindProjectionOnPointsSettings_OffsetMutablePtr(MR_FindProjectionOnPointsSettings *ptr, ptrdiff_t i)
MRC_API MR_FindProjectionOnPointsSettings * MR_FindProjectionOnPointsSettings_ConstructFromAnother(MR_PassBy _other_pass_by, MR_FindProjectionOnPointsSettings *_other)
MRC_API const MR_AffineXf3f ** MR_FindProjectionOnPointsSettings_GetMutable_xf(MR_FindProjectionOnPointsSettings *_this)
MRC_API void MR_FindProjectionOnPointsSettings_Destroy(const MR_FindProjectionOnPointsSettings *_this)
Destroys a heap-allocated instance of MR_FindProjectionOnPointsSettings. Does nothing if the pointer ...
MRC_API bool MR_equal_MR_PointsProjectionResult(const MR_PointsProjectionResult *_this, const MR_PointsProjectionResult *_1)
MRC_API void MR_FindProjectionOnPointsSettings_Set_valid(MR_FindProjectionOnPointsSettings *_this, const MR_BitSet *value)
struct MR_IPointsProjector MR_IPointsProjector
Definition MRPointsProject.h:47
MRC_API MR_PointsProjectionResult * MR_PointsProjectionResult_ConstructFrom(float distSq, MR_VertId vId)
MRC_API const MR_PointsProjector * MR_PointsProjector_DynamicDowncastFrom_MR_IPointsProjector(const MR_IPointsProjector *object)
MRC_API MR_PointsProjectionResult * MR_findProjectionOnPoints_6(const MR_Vector3f *pt, const MR_PointCloudPart *pcp, const float *upDistLimitSq, const MR_AffineXf3f *xf, const float *loDistLimitSq, MR_PassBy skipCb_pass_by, MR_std_function_bool_from_MR_VertId *skipCb)
computes the closest point on point cloud to given point
MRC_API const float * MR_FindProjectionOnPointsSettings_Get_loDistLimitSq(const MR_FindProjectionOnPointsSettings *_this)
MRC_API MR_PointsProjectionResult * MR_PointsProjectionResult_OffsetMutablePtr(MR_PointsProjectionResult *ptr, ptrdiff_t i)
MRC_API void MR_FindProjectionOnPointsSettings_Set_skipSameIndex(MR_FindProjectionOnPointsSettings *_this, bool value)
MRC_API const MR_PointsProjector * MR_PointsProjector_OffsetPtr(const MR_PointsProjector *ptr, ptrdiff_t i)
MRC_API MR_std_function_bool_from_float * MR_FindProjectionOnPointsSettings_GetMutable_cb(MR_FindProjectionOnPointsSettings *_this)
MRC_API bool MR_not_equal_MR_PointsProjectionResult(const MR_PointsProjectionResult *_this, const MR_PointsProjectionResult *_1)
MRC_API const MR_IPointsProjector * MR_IPointsProjector_OffsetPtr(const MR_IPointsProjector *ptr, ptrdiff_t i)
MRC_API void MR_PointsProjector_DestroyArray(const MR_PointsProjector *_this)
Destroys a heap-allocated array of MR_PointsProjector. Does nothing if the pointer is null.
MRC_API MR_IPointsProjector * MR_IPointsProjector_OffsetMutablePtr(MR_IPointsProjector *ptr, ptrdiff_t i)
MRC_API MR_IPointsProjector * MR_PointsProjector_MutableUpcastTo_MR_IPointsProjector(MR_PointsProjector *object)
MRC_API MR_FindProjectionOnPointsSettings * MR_FindProjectionOnPointsSettings_DefaultConstructArray(size_t num_elems)
MRC_API bool MR_greater_equal_MR_PointsProjectionResult(const MR_PointsProjectionResult *_this, const MR_PointsProjectionResult *_1)
MRC_API MR_FindProjectionOnPointsSettings * MR_FindProjectionOnPointsSettings_AssignFromAnother(MR_FindProjectionOnPointsSettings *_this, MR_PassBy _other_pass_by, MR_FindProjectionOnPointsSettings *_other)
MRC_API MR_PointsProjector * MR_PointsProjector_MutableDynamicDowncastFrom_MR_IPointsProjector(MR_IPointsProjector *object)
MRC_API const MR_std_function_bool_from_float * MR_FindProjectionOnPointsSettings_Get_cb(const MR_FindProjectionOnPointsSettings *_this)
MR_PassBy
Definition common.h:13
MR_std_partial_ordering
The result of a three-way comparison between values that are not necessarily ordered with respect to ...
Definition compare.h:10
#define MRC_API
Definition include/MRCMisc/exports.h:11
Definition MRAffineXf.h:39
Generated from class MR::Vector3f.
Definition MRVector3.h:47
Definition MRId.h:41