diff --git a/src/OpenGl/OpenGl_SceneGeometry.hxx b/src/OpenGl/OpenGl_SceneGeometry.hxx index 4d99186d2b..f5c854547e 100755 --- a/src/OpenGl/OpenGl_SceneGeometry.hxx +++ b/src/OpenGl/OpenGl_SceneGeometry.hxx @@ -174,26 +174,14 @@ public: void SetMaterialIndex (Standard_Integer theMatID) { for (Standard_Size anIdx = 0; anIdx < Elements.size(); ++anIdx) - Elements[anIdx].w() = aMatID; - } - - //! Returns AABB of the given object. - using BVH_Triangulation::Box; - - //! Returns AABB of primitive set. - BVH_BoxNt Box() const - { - const BVH_Transform* aTransform = - dynamic_cast* > (Properties().operator->()); - - BVH_BoxNt aBox = BVH_PrimitiveSet::Box(); - - if (aTransform) { Elements[anIdx].w() = theMatID; } } + //! Returns AABB of the given object. + using BVH_Triangulation::Box; + //! Returns AABB of primitive set. BVH_BoxNt Box() const;