MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPointOnObject.h File Reference
#include "MRPointOnFace.h"
#include "MRMeshTriPoint.h"
#include "MREdgePoint.h"
#include <optional>
#include <variant>

Go to the source code of this file.

Classes

struct  MR::PointOnObject
 

Namespaces

namespace  MR
 

Typedefs

using MR::PickedPoint = std::variant<std::monostate, MeshTriPoint, EdgePoint, VertId>
 

Functions

MRMESH_API PickedPoint MR::pointOnObjectToPickedPoint (const VisualObject *object, const PointOnObject &pos)
 Converts PointOnObject coordinates depending on the object type to the PickedPoint variant.
 
MRMESH_API std::optional< Vector3f > MR::getPickedPointPosition (const VisualObject &object, const PickedPoint &point)
 
MRMESH_API Vector3f MR::pickedPointToVector3 (const VisualObject *object, const PickedPoint &point)
 Converts pickedPoint into local coordinates of its object.
 
MRMESH_API bool MR::isPickedPointValid (const VisualObject *object, const PickedPoint &point)
 Checks that the picked point presents in the object's topology.
 
MRMESH_API std::optional< Vector3f > MR::getPickedPointNormal (const VisualObject &object, const PickedPoint &point)