void ManagerBitSet::objectSetBoundingBox( const ObjectSharedPtr& object, const dp::math::Box3f& boundingBox ) { ObjectBitSetSharedPtr objectImpl = std::static_pointer_cast<ObjectBitSet>(object); objectImpl->setLowerLeft( dp::math::Vec4f(boundingBox.getLower(), 1.0f ) ); objectImpl->setExtent( dp::math::Vec4f( boundingBox.getSize(), 0.0f ) ); if ( objectImpl->getGroup() ) { objectImpl->getGroup()->setOBBDirty( true ); } }
void ManagerImpl::objectSetBoundingBox( const ObjectHandle& object, const dp::math::Box3f& boundingBox ) { const ObjectImplHandle objectImpl = dp::util::smart_cast<ObjectImpl>(object); objectImpl->m_lowerLeft = dp::math::Vec4f(boundingBox.getLower(), 1.0f ); objectImpl->m_extends = dp::math::Vec4f( boundingBox.getSize(), 0.0f ); }