53061: "Clear mesh data" removes too many (if !HasShapeToMesh())

This commit is contained in:
eap 2016-02-05 16:51:01 +03:00
parent 1c80375f7a
commit 82a86d922e
2 changed files with 4 additions and 3 deletions

View File

@ -110,9 +110,10 @@ SALOME supports elements of second order, without a central node
(quadratic triangle, quadrangle, polygon, tetrahedron, hexahedron,
pentahedron and pyramid) and with central nodes (bi-quadratic triangle
and quadrangle and tri-quadratic hexahedron).<br>
Quadratic mesh can be obtained in two ways:
Quadratic mesh can be obtained in three ways:
- Using a global \ref quadratic_mesh_anchor "Quadratic Mesh"
hypothesis. (Elements with the central node are not generated in this way).
- Using \ref convert_to_from_quadratic_mesh_page operation.
- Using an appropriate option of some meshing algorithms, which
generate elements of several dimensions starting from mesh segments.
*/

View File

@ -293,7 +293,7 @@ void SMESH_Mesh_i::Clear() throw (SALOME::SALOME_Exception)
{
Unexpect aCatch(SALOME_SalomeException);
if ( _preMeshInfo )
_preMeshInfo->ForgetAllData();
_preMeshInfo->ForgetOrLoad(); // load in case if !HasShapeToMesh()
try {
_impl->Clear();