mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 08:20:35 +05:00
PAL13460 (force the mesh to go through a point)
improve getBox() and setBox()
This commit is contained in:
parent
c9b555c251
commit
f79cff562c
@ -71,8 +71,9 @@ SMESH_Octree::~SMESH_Octree ()
|
|||||||
//===========================================================================
|
//===========================================================================
|
||||||
void SMESH_Octree::setBox(const Bnd_B3d* box)
|
void SMESH_Octree::setBox(const Bnd_B3d* box)
|
||||||
{
|
{
|
||||||
delete myBox;
|
// delete myBox;
|
||||||
myBox=new Bnd_B3d(*box);
|
// myBox=new Bnd_B3d(*box);
|
||||||
|
*myBox = *box;
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
@ -81,11 +82,12 @@ void SMESH_Octree::setBox(const Bnd_B3d* box)
|
|||||||
* \param box - Set box to the 3d Bounding Box of the Octree
|
* \param box - Set box to the 3d Bounding Box of the Octree
|
||||||
*/
|
*/
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
void SMESH_Octree::getBox(Bnd_B3d* box)
|
void SMESH_Octree::getBox(Bnd_B3d& box)
|
||||||
{
|
{
|
||||||
if(box != NULL)
|
// if(box != NULL)
|
||||||
delete box;
|
// delete box;
|
||||||
box = new Bnd_B3d (*myBox);
|
// box = new Bnd_B3d (*myBox);
|
||||||
|
box = *myBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user