mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0025411: BVH package - eliminate warning about hidden overloaded method ::Box
Conflicts: src/OpenGl/OpenGl_SceneGeometry.hxx
This commit is contained in:
@@ -174,6 +174,21 @@ 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<Standard_ShortReal, 4>::Box;
|
||||
|
||||
//! Returns AABB of primitive set.
|
||||
BVH_BoxNt Box() const
|
||||
{
|
||||
const BVH_Transform<Standard_ShortReal, 4>* aTransform =
|
||||
dynamic_cast<const BVH_Transform<Standard_ShortReal, 4>* > (Properties().operator->());
|
||||
|
||||
BVH_BoxNt aBox = BVH_PrimitiveSet<Standard_ShortReal, 4>::Box();
|
||||
|
||||
if (aTransform)
|
||||
{
|
||||
Elements[anIdx].w() = theMatID;
|
||||
}
|
||||
|
Reference in New Issue
Block a user