mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-20 12:45:50 +03:00
0025411: BVH package - eliminate warning about hidden overloaded method ::Box
Correction of merge error Fix for compilation
This commit is contained in:
parent
9256a43d09
commit
5e6a855aa9
@ -174,26 +174,14 @@ public:
|
|||||||
void SetMaterialIndex (Standard_Integer theMatID)
|
void SetMaterialIndex (Standard_Integer theMatID)
|
||||||
{
|
{
|
||||||
for (Standard_Size anIdx = 0; anIdx < Elements.size(); ++anIdx)
|
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;
|
Elements[anIdx].w() = theMatID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//! Returns AABB of the given object.
|
||||||
|
using BVH_Triangulation<Standard_ShortReal, 3>::Box;
|
||||||
|
|
||||||
//! Returns AABB of primitive set.
|
//! Returns AABB of primitive set.
|
||||||
BVH_BoxNt Box() const;
|
BVH_BoxNt Box() const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user