5#include "MRPch/MRBindingMacros.h"
23 [[nodiscard]]
bool valid()
const {
return vId.valid(); }
24 [[nodiscard]]
explicit operator bool()
const {
return vId.valid(); }
56 [[nodiscard]]
float dist()
const
74 [[nodiscard]]
explicit operator bool()
const {
return mtp.
valid(); }
101 MR_BIND_PREFER_UNLOCK_GIL_WHEN_USED_AS_PARAM
bounding volume hierarchy for point cloud structure
Definition MRAABBTreePoints.h:16
float minWeight
Definition MRClosestWeightedPoint.h:84
MeshTriPoint mtp
the corresponding point on mesh in barycentric representation
Definition MRClosestWeightedPoint.h:33
VertMetric pointWeight
function returning the weight of each point, must be set by the user
Definition MRClosestWeightedPoint.h:80
float maxBidirDist
default 0 here does not work for negative distances
Definition MRClosestWeightedPoint.h:111
float maxWeight
Definition MRClosestWeightedPoint.h:88
bool valid() const
check for validity, otherwise there is no point closer than maxBidirDist
Definition MRClosestWeightedPoint.h:23
float eucledeanDist
euclidean distance from input location to mtp
Definition MRClosestWeightedPoint.h:36
bool bidirectionalMode
Definition MRClosestWeightedPoint.h:98
bool valid() const
consider this valid if the edge ID is valid
Definition MRMeshTriPoint.h:61
float dist() const
Definition MRClosestWeightedPoint.h:56
float w
point's weight
Definition MRClosestWeightedPoint.h:39
MRMESH_API PointAndDistance findClosestWeightedPoint(const Vector3f &loc, const AABBTreePoints &tree, const DistanceFromWeightedPointsComputeParams ¶ms)
bool bidirectionalOrOutside
Definition MRClosestWeightedPoint.h:45
MRMESH_API MeshPointAndDistance findClosestWeightedMeshPoint(const Vector3f &loc, const Mesh &mesh, const DistanceFromWeightedPointsComputeParams ¶ms)
float dist
the distance from input location to point vId considering point's weight
Definition MRClosestWeightedPoint.h:20
Vector3f loc
point location
Definition MRClosestWeightedPoint.h:30
float bidirDist() const
bidirectional distance from input location to mtp considering point's weight
Definition MRClosestWeightedPoint.h:48
auto operator<=>(const MeshPointAndDistance &other) const
comparison telling which point is closer to the location
Definition MRClosestWeightedPoint.h:62
float maxWeightGrad
Definition MRClosestWeightedPoint.h:92
VertId vId
a cloud's point
Definition MRClosestWeightedPoint.h:17
float minBidirDist
Definition MRClosestWeightedPoint.h:108
bool valid() const
check for validity, otherwise there is no point closer than maxBidirDist
Definition MRClosestWeightedPoint.h:73
@ other
Angle, normally float. Measure in radians.
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRClosestWeightedPoint.h:105
Definition MRClosestWeightedPoint.h:78
Definition MRClosestWeightedPoint.h:28
Definition MRMeshTriPoint.h:26
Definition MRClosestWeightedPoint.h:15