MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::MeshPointAndDistance Struct Reference

#include <MRMesh/MRClosestWeightedPoint.h>

Public Member Functions

float bidirDist () const
 bidirectional distance from input location to mtp considering point's weight
float dist () const
auto operator<=> (const MeshPointAndDistance &other) const
 comparison telling which point is closer to the location
bool valid () const
 check for validity, otherwise there is no point closer than maxBidirDist
 operator bool () const

Public Attributes

Vector3f loc
 point location
MeshTriPoint mtp
 the corresponding point on mesh in barycentric representation
float eucledeanDist = 0
 euclidean distance from input location to mtp
float w = 0
 point's weight
bool bidirectionalOrOutside = true

The documentation for this struct was generated from the following file: