27 [[nodiscard]]
const MeshOrPoints &
obj( ObjId oi )
const {
return objs_[oi].obj; }
30 [[nodiscard]]
const AffineXf3f &
toWorld( ObjId oi )
const {
return objs_[oi].xf; }
33 [[nodiscard]]
const AffineXf3f &
toLocal( ObjId oi )
const {
return toLocal_[oi]; }
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
#define MRMESH_CLASS
Definition MRMesh/MRMeshFwd.h:50
base class for most AABB-trees (except for AABBTreePoints)
Definition MRAABBTreeBase.h:12
Definition MRAABBTreeObjects.h:19
const AffineXf3f & toLocal(ObjId oi) const
gets transformation from world space to local space of given object
Definition MRAABBTreeObjects.h:33
const AffineXf3f & toWorld(ObjId oi) const
gets transformation from local space of given object to world space
Definition MRAABBTreeObjects.h:30
const MeshOrPoints & obj(ObjId oi) const
gets object by its id
Definition MRAABBTreeObjects.h:27
AABBTreeObjects()=default
MRMESH_API AABBTreeObjects(Vector< MeshOrPointsXf, ObjId > objs)
creates tree for given set of objects each with its own transformation
const Vector< AffineXf3f, ObjId > & toLocal() const
gets mapping: objId -> its transformation from world space to local space
Definition MRAABBTreeObjects.h:36
Definition MRMesh/MRMeshOrPoints.h:17
std::vector<T>-like container that requires specific indexing type,
Definition MRMesh/MRVector.h:20
Definition MRCameraOrientationPlugin.h:8
class MRMESH_CLASS ObjTag
Definition MRMesh/MRMeshFwd.h:68
Definition MRAABBTreeObjects.h:10
ObjTag LeafTag
Definition MRAABBTreeObjects.h:11
ObjId LeafId
Definition MRAABBTreeObjects.h:12
Box3f BoxT
Definition MRAABBTreeObjects.h:13