Warning, file /include/opencascade/Bnd_Tools.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _Bnd_Tools_Header
0017 #define _Bnd_Tools_Header
0018
0019 #include <Bnd_Box2d.hxx>
0020 #include <Bnd_Box.hxx>
0021 #include <BVH_Box.hxx>
0022
0023
0024 class Bnd_Tools
0025 {
0026 public:
0027
0028
0029 static BVH_Box <Standard_Real, 2> Bnd2BVH (const Bnd_Box2d& theBox)
0030 {
0031 Standard_Real aXMin, aYMin, aXMax, aYMax;
0032 theBox.Get (aXMin, aYMin, aXMax, aYMax);
0033 return BVH_Box <Standard_Real, 2> (BVH_Vec2d (aXMin, aYMin),
0034 BVH_Vec2d (aXMax, aYMax));
0035 }
0036
0037
0038 static BVH_Box <Standard_Real, 3> Bnd2BVH (const Bnd_Box& theBox)
0039 {
0040 Standard_Real aXMin, aYMin, aZMin, aXMax, aYMax, aZMax;
0041 theBox.Get (aXMin, aYMin, aZMin, aXMax, aYMax, aZMax);
0042 return BVH_Box <Standard_Real, 3> (BVH_Vec3d (aXMin, aYMin, aZMin),
0043 BVH_Vec3d (aXMax, aYMax, aZMax));
0044 }
0045 };
0046
0047 #endif