MeshLib
 
Loading...
Searching...
No Matches
MRMeshOrPoints.h File Reference
#include "MRMeshPart.h"
#include "MRAffineXf3.h"
#include "MRId.h"
#include <cfloat>
#include <functional>
#include <optional>
#include <variant>

Go to the source code of this file.

Classes

class  MR::MeshOrPoints
 
struct  MR::MeshOrPoints::ProjectionResult
 
struct  MR::MeshOrPointsXf
 an object and its transformation to global space with other objects More...
 

Namespaces

namespace  MR
 

Typedefs

using MR::ProjectOnAllCallback = std::function<void( ObjId, MeshOrPoints::ProjectionResult )>
 to receive object id + projection result on it
 

Functions

MRMESH_API std::optional< MeshOrPointsMR::getMeshOrPoints (const VisualObject *obj)
 constructs MeshOrPoints from ObjectMesh or ObjectPoints, otherwise returns nullopt
 
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