#include "MRMeshPart.h"
#include "MRPointCloudPart.h"
#include "MRAffineXf3.h"
#include "MRId.h"
#include <cfloat>
#include <functional>
#include <optional>
#include <variant>
Go to the source code of this file.
|
MRMESH_API std::optional< MeshOrPoints > | MR::getMeshOrPoints (const Object *obj) |
| constructs MeshOrPoints from ObjectMesh or ObjectPoints, otherwise returns nullopt
|
|
MRMESH_API std::optional< MeshOrPointsXf > | MR::getMeshOrPointsXf (const Object *obj) |
|
MRMESH_API void | MR::projectOnAll (const Vector3f &pt, const AABBTreeObjects &tree, float upDistLimitSq, const ProjectOnAllCallback &callback, ObjId skipObjId={}) |
| finds closest point on every object within given distance
|
|
MeshOrPoints::ProjectionResult | MR::projectWorldPointOntoObject (const Vector3f &p, const Object &obj) |
| Projects a point onto an object, in world space. Returns .valid() == false if this object type isn't projectable onto.
|
|
MRMESH_API MeshOrPoints::ProjectionResult | MR::projectWorldPointOntoObjectsRecursive (const Vector3f &p, const Object *root=nullptr, std::function< bool(const Object &)> projectPred=nullptr, std::function< bool(const Object &)> recursePred=nullptr) |
|