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

#include <MRMeshProject.h>

Public Member Functions

bool valid () const
 check for validity, otherwise the projection was not found
 
 operator bool () const
 

Public Attributes

PointOnFace proj
 the closest point on mesh, transformed by xf if it is given
 
MeshTriPoint mtp
 its barycentric representation
 
float distSq = 0
 squared distance from original projected point to proj
 

Member Function Documentation

◆ operator bool()

MR::MeshProjectionResult::operator bool ( ) const
inlineexplicitnodiscard

◆ valid()

bool MR::MeshProjectionResult::valid ( ) const
inlinenodiscard

check for validity, otherwise the projection was not found

Member Data Documentation

◆ distSq

float MR::MeshProjectionResult::distSq = 0

squared distance from original projected point to proj

◆ mtp

MeshTriPoint MR::MeshProjectionResult::mtp

its barycentric representation

◆ proj

PointOnFace MR::MeshProjectionResult::proj

the closest point on mesh, transformed by xf if it is given


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