Skip to content
Snippets Groups Projects
Commit 286625de authored by Zain Selman's avatar Zain Selman :speech_balloon:
Browse files

bounding box computation is now const correct

parent fb111f38
No related branches found
No related tags found
1 merge request!249bounding box computation is now const correct
......@@ -284,7 +284,7 @@ void BaseObjectData::manipPlaced( bool _placed ) {
manipPlaced_ = _placed;
}
void BaseObjectData::getBoundingBox(ACG::Vec3d& bbmin, ACG::Vec3d& bbmax){
void BaseObjectData::getBoundingBox(ACG::Vec3d& bbmin, ACG::Vec3d& bbmax) const {
// Single pass action, as the bounding box is not influenced by multipass traversal
ACG::SceneGraph::BoundingBoxAction act;
......
......@@ -207,7 +207,7 @@ class DLLEXPORT BaseObjectData : public BaseObject
void manipPlaced( bool _placed );
/// get the bounding box of the object
void getBoundingBox(ACG::Vec3d& bbmin, ACG::Vec3d& bbmax);
void getBoundingBox(ACG::Vec3d& bbmin, ACG::Vec3d& bbmax) const;
/** \brief Set the draw mode for the object
* @param _mode The draw mode that should be active for this object
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment