MeshLib Documentation
Loading...
Searching...
No Matches
MR::MeshOrPoints::ProjectionResult Struct Reference

#include <MRMeshOrPoints.h>

Public Attributes

Vector3f point
 found closest point
 
std::optional< Vector3f > normal
 
bool isBd = false
 can be true only for meshes, if the closest point is located on the boundary
 
float distSq = FLT_MAX
 squared distance from query point to the closest point
 
VertId closestVert
 

Member Data Documentation

◆ closestVert

VertId MR::MeshOrPoints::ProjectionResult::closestVert

for point clouds it is the closest vertex, for meshes it is the closest vertex of the triangle with the closest point

◆ distSq

float MR::MeshOrPoints::ProjectionResult::distSq = FLT_MAX

squared distance from query point to the closest point

◆ isBd

bool MR::MeshOrPoints::ProjectionResult::isBd = false

can be true only for meshes, if the closest point is located on the boundary

◆ normal

std::optional<Vector3f> MR::MeshOrPoints::ProjectionResult::normal

normal at the closest point; for meshes it will be pseudonormal with the differentiation depending on closest point location (face/edge/vertex)

◆ point

Vector3f MR::MeshOrPoints::ProjectionResult::point

found closest point


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