5#include "MRPch/MRBindingMacros.h"
11struct PointAndDistance
20 [[nodiscard]]
bool valid()
const {
return vId.valid(); }
21 [[nodiscard]]
explicit operator bool()
const {
return vId.valid(); }
24struct MeshPointAndDistance
45 [[nodiscard]]
float bidirDist()
const
53 [[nodiscard]]
float dist()
const
66 other.eucledeanDist + ( other.bidirectionalOrOutside ? -other.w : other.
w );
70 [[nodiscard]]
bool valid()
const {
return mtp.valid(); }
71 [[nodiscard]]
explicit operator bool()
const {
return mtp.valid(); }
74struct DistanceFromWeightedPointsParams
98 MR_BIND_PREFER_UNLOCK_GIL_WHEN_USED_AS_PARAM
101struct DistanceFromWeightedPointsComputeParams : DistanceFromWeightedPointsParams
105 float minBidirDist = -FLT_MAX;
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRAABBTreePoints.h:16
Definition MRClosestWeightedPoint.h:102
new unsafe ref float maxBidirDist
new unsafe ref float maxWeight
new unsafe ref bool bidirectionalMode
new unsafe ref float minWeight
new unsafe ref float maxWeightGrad
new unsafe MR.Std.Function_FloatFuncFromMRVertId pointWeight
Definition MRClosestWeightedPoint.h:25
new unsafe ref bool bidirectionalOrOutside
new unsafe ref float eucledeanDist
new unsafe ref MR.Vector3f loc
new unsafe MR.MeshTriPoint mtp
unsafe MeshPointAndDistance()
Definition MRMesh/MRMesh.h:23
Definition MRClosestWeightedPoint.h:12
new unsafe ref MR.VertId vId
new unsafe ref float dist
Definition MRCameraOrientationPlugin.h:8
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)