diff --git a/source/MRMesh/MRObject.cpp b/source/MRMesh/MRObject.cpp index 5ac8ff7f3a88..53560ef1f9fa 100644 --- a/source/MRMesh/MRObject.cpp +++ b/source/MRMesh/MRObject.cpp @@ -3,6 +3,7 @@ #include "MRObjectTagEventDispatcher.h" #include "MRSerializer.h" #include "MRStringConvert.h" +#include "MRBox.h" #include "MRHeapBytes.h" #include "MRphmap.h" #include "MRPch/MRJson.h" @@ -859,6 +860,11 @@ void Object::swap( Object& other ) swapSignals_( other ); } +Box3f Object::getWorldBox( ViewportId ) const +{ + return {}; // empty box +} + Box3f Object::getWorldTreeBox( ViewportId id ) const { Box3f res = getWorldBox( id ); diff --git a/source/MRMesh/MRObject.h b/source/MRMesh/MRObject.h index d39dea577c6b..7afdd3ea9d9c 100644 --- a/source/MRMesh/MRObject.h +++ b/source/MRMesh/MRObject.h @@ -1,7 +1,6 @@ #pragma once #include "MRAffineXf3.h" -#include "MRBox.h" #include "MRExpected.h" #include "MRProgressCallback.h" #include "MRSignal.h" @@ -244,7 +243,7 @@ class MRMESH_CLASS Object : public ObjectChildrenHolder MRMESH_API void swap( Object& other ); /// returns bounding box of this object in world coordinates for default or specific viewport - virtual Box3f getWorldBox( ViewportId = {} ) const { return {}; } ///empty box + MRMESH_API virtual Box3f getWorldBox( ViewportId = {} ) const; /// returns bounding box of this object and all children visible in given (or default) viewport in world coordinates MRMESH_API Box3f getWorldTreeBox( ViewportId = {} ) const; diff --git a/source/MRMesh/MRVisualObject.h b/source/MRMesh/MRVisualObject.h index ad5f8af7f901..dae74b660db8 100644 --- a/source/MRMesh/MRVisualObject.h +++ b/source/MRMesh/MRVisualObject.h @@ -1,6 +1,7 @@ #pragma once #include "MRObject.h" +#include "MRBox.h" #include "MRMeshTexture.h" #include "MRVector.h" #include "MRColor.h"