#include <MRMeshOrPoints.h>
|
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 of the mesh (or the current region)
|
|
float | distSq = FLT_MAX |
| squared distance from query point to the closest point
|
|
VertId | closestVert |
|
◆ operator bool()
MR::MeshOrPoints::ProjectionResult::operator bool |
( |
| ) |
const |
|
inlineexplicitnodiscard |
◆ valid()
bool MR::MeshOrPoints::ProjectionResult::valid |
( |
| ) |
const |
|
inlinenodiscard |
◆ 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 of the mesh (or the current region)
◆ 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 |
The documentation for this struct was generated from the following file: