mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 03:20:32 +05:00
Clear data structures at Compute() finish
This commit is contained in:
parent
0df1e71b77
commit
6cf8eec182
@ -555,6 +555,10 @@ bool StdMeshers_Prism_3D::Compute(SMESH_Mesh& theMesh, const TopoDS_Shape& theSh
|
|||||||
AddPrisms( columns, myHelper );
|
AddPrisms( columns, myHelper );
|
||||||
|
|
||||||
} // loop on bottom mesh faces
|
} // loop on bottom mesh faces
|
||||||
|
|
||||||
|
// clear data
|
||||||
|
myBotToColumnMap.clear();
|
||||||
|
myBlock.Clear();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1045,9 +1049,19 @@ StdMeshers_PrismAsBlock::StdMeshers_PrismAsBlock()
|
|||||||
|
|
||||||
StdMeshers_PrismAsBlock::~StdMeshers_PrismAsBlock()
|
StdMeshers_PrismAsBlock::~StdMeshers_PrismAsBlock()
|
||||||
{
|
{
|
||||||
|
Clear();
|
||||||
|
}
|
||||||
|
void StdMeshers_PrismAsBlock::Clear()
|
||||||
|
{
|
||||||
|
myHelper = 0;
|
||||||
|
myShapeIDMap.Clear();
|
||||||
|
myError.reset();
|
||||||
|
|
||||||
if ( mySide ) {
|
if ( mySide ) {
|
||||||
delete mySide; mySide = 0;
|
delete mySide; mySide = 0;
|
||||||
}
|
}
|
||||||
|
myParam2ColumnMaps.clear();
|
||||||
|
myShapeIndex2ColumnMap.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
@ -124,6 +124,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
SMESH_ComputeErrorPtr GetError() const { return myError; }
|
SMESH_ComputeErrorPtr GetError() const { return myError; }
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Free allocated memory
|
||||||
|
*/
|
||||||
|
void Clear();
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Return number of nodes on every vertical edge
|
* \brief Return number of nodes on every vertical edge
|
||||||
* \retval int - number of nodes including end nodes
|
* \retval int - number of nodes including end nodes
|
||||||
|
Loading…
Reference in New Issue
Block a user