Commit ca8804e5 authored by Haocheng LIU's avatar Haocheng LIU

BUG: Add BBox check logic for zooming to auxiliary geometry/image

vtkAuxiliaryGeometryExtension would set a bounding box for auxiliary
geometry when it's loaded in, however entitiyRef has no logic to handle it.
parent db079a64
......@@ -538,6 +538,15 @@ std::vector<double> EntityRef::boundingBox() const
}
return bBox;
}
else if (this->isAuxiliaryGeometry())
{
if (this->hasFloatProperty(SMTK_BOUNDING_BOX_PROP))
{
smtk::model::FloatList currentBBox(this->floatProperty(SMTK_BOUNDING_BOX_PROP));
bBox = this->unionBoundingBox(bBox, currentBBox);
return bBox;
}
}
else
{
return dummy;
......
......@@ -73,7 +73,7 @@
*/
#define SMTK_GEOM_STYLE_PROP "_geomstyle"
/**\brief The name of an float property used to store the bounding box of a model entity
/**\brief The name of a float property used to store the bounding box of a model entity or an auxiliary geometry
*
* \sa SMTK_BOUNDING_BOX_PROP
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment