#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 |
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
float MR::MeshOrPoints::ProjectionResult::distSq = FLT_MAX |
squared distance from query point to the closest point
bool MR::MeshOrPoints::ProjectionResult::isBd = false |
can be true only for meshes, if the closest point is located on the boundary
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)
Vector3f MR::MeshOrPoints::ProjectionResult::point |
found closest point