From: eap Date: Wed, 6 Mar 2013 14:16:29 +0000 (+0000) Subject: Translate(022150: [CEA 789] Projection_1D2D not taken into account by BLSURF X-Git-Tag: pluginMGCleaner~62 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f3304d692be2c3b6abc8b29a6b974170d339ae89;p=modules%2Fsmesh.git Translate(022150: [CEA 789] Projection_1D2D not taken into account by BLSURF Fix the previous integration --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index 2049d5ff6..9afb7677c 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -1352,7 +1352,8 @@ bool SMESH_subMesh::ComputeStateEngine(int event) { _computeState = READY_TO_COMPUTE; SMESHDS_SubMesh* smDS = GetSubMeshDS(); - if ( smDS && smDS->NbNodes() ) { + if ( smDS && smDS->NbNodes() ) + { if ( event == CLEAN ) { cleanDependants(); cleanSubMesh( this ); @@ -1360,7 +1361,9 @@ bool SMESH_subMesh::ComputeStateEngine(int event) else _computeState = COMPUTE_OK; } - else if ( event == COMPUTE && !_alwaysComputed ) { + else if (( event == COMPUTE || event == COMPUTE_SUBMESH ) + && !_alwaysComputed ) + { const TopoDS_Vertex & V = TopoDS::Vertex( _subShape ); gp_Pnt P = BRep_Tool::Pnt(V); if ( SMDS_MeshNode * n = _father->GetMeshDS()->AddNode(P.X(), P.Y(), P.Z()) ) {