5#include "MRPch/MRBindingMacros.h"
20 [[nodiscard]]
bool valid()
const {
return vId.valid(); }
21 [[nodiscard]]
explicit operator bool()
const {
return vId.valid(); }
34 [[nodiscard]]
explicit operator bool()
const {
return mtp.
valid(); }
52 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
std::function< float(VertId)> VertMetric
Definition MRMesh/MRMeshFwd.h:492
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:56
float maxDistance
find the closest point only if the distance to it is less than given value
Definition MRClosestWeightedPoint.h:61
float minDistance
stop searching as soon as any point within this distance is found
Definition MRClosestWeightedPoint.h:58
Definition MRClosestWeightedPoint.h:38
VertMetric pointWeight
function returning the weight of each point, must be set by the user
Definition MRClosestWeightedPoint.h:40
float maxWeight
Definition MRClosestWeightedPoint.h:44
float maxWeightGrad
Definition MRClosestWeightedPoint.h:48
Definition MRClosestWeightedPoint.h:25
MeshTriPoint mtp
a point on mesh in barycentric representation
Definition MRClosestWeightedPoint.h:27
bool valid() const
check for validity, otherwise there is no point closer than maxDistance
Definition MRClosestWeightedPoint.h:33
float dist
the distance from input location to mtp considering point's weight
Definition MRClosestWeightedPoint.h:30
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 maxDistance
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