5#include "MRPch/MRBindingMacros.h"
20 [[nodiscard]]
bool valid()
const {
return vId.valid(); }
21 [[nodiscard]]
explicit operator bool()
const {
return vId.valid(); }
53 [[nodiscard]]
float dist()
const
71 [[nodiscard]]
explicit operator bool()
const {
return mtp.
valid(); }
94 MR_BIND_PREFER_UNLOCK_GIL_WHEN_USED_AS_PARAM
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:79
bounding volume hierarchy for point cloud structure
Definition MRAABBTreePoints.h:16
Definition MRCameraOrientationPlugin.h:8
std::function< float(VertId)> VertMetric
Definition MRMesh/MRMeshFwd.h:504
MRMESH_API PointAndDistance findClosestWeightedPoint(const Vector3f &loc, const AABBTreePoints &tree, const DistanceFromWeightedPointsComputeParams ¶ms)
MRMESH_API MeshPointAndDistance findClosestWeightedMeshPoint(const Vector3f &loc, const Mesh &mesh, const DistanceFromWeightedPointsComputeParams ¶ms)
Definition MRClosestWeightedPoint.h:98
float maxBidirDist
find the closest point only if weighted bidirectional distance to it is less than given value
Definition MRClosestWeightedPoint.h:104
float minBidirDist
Definition MRClosestWeightedPoint.h:101
Definition MRClosestWeightedPoint.h:75
VertMetric pointWeight
function returning the weight of each point, must be set by the user
Definition MRClosestWeightedPoint.h:77
float maxWeight
Definition MRClosestWeightedPoint.h:81
bool bidirectionalMode
Definition MRClosestWeightedPoint.h:91
float maxWeightGrad
Definition MRClosestWeightedPoint.h:85
Definition MRClosestWeightedPoint.h:25
MeshTriPoint mtp
the corresponding point on mesh in barycentric representation
Definition MRClosestWeightedPoint.h:30
float eucledeanDist
euclidean distance from input location to mtp
Definition MRClosestWeightedPoint.h:33
float dist() const
Definition MRClosestWeightedPoint.h:53
float w
point's weight
Definition MRClosestWeightedPoint.h:36
bool bidirectionalOrOutside
Definition MRClosestWeightedPoint.h:42
Vector3f loc
point location
Definition MRClosestWeightedPoint.h:27
float bidirDist() const
bidirectional distance from input location to mtp considering point's weight
Definition MRClosestWeightedPoint.h:45
auto operator<=>(const MeshPointAndDistance &other) const
comparison telling which point is closer to the location
Definition MRClosestWeightedPoint.h:59
bool valid() const
check for validity, otherwise there is no point closer than maxBidirDist
Definition MRClosestWeightedPoint.h:70
Definition MRMesh/MRMeshTriPoint.h:23
bool valid() const
consider this valid if the edge ID is valid
Definition MRMesh/MRMeshTriPoint.h:58
Definition MRMesh/MRMesh.h:22
Definition MRClosestWeightedPoint.h:12
bool valid() const
check for validity, otherwise there is no point closer than maxBidirDist
Definition MRClosestWeightedPoint.h:20
float dist
the distance from input location to point vId considering point's weight
Definition MRClosestWeightedPoint.h:17
VertId vId
a cloud's point
Definition MRClosestWeightedPoint.h:14