From: eap Date: Tue, 8 Feb 2011 12:21:46 +0000 (+0000) Subject: Regression of the test case imps/A1 X-Git-Tag: StartingPortingMED3~71 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4ebb8cfccc01388e828a50f00d71b02a8aba04a9;p=modules%2Fsmesh.git Regression of the test case imps/A1 In Compute2ndPart(), create a new SMESH_ElementSearcher to avoid search of volumes in a proxy mesh contaiting only faces --- diff --git a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx index b02042589..c8bc5d9da 100644 --- a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx +++ b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx @@ -1030,8 +1030,8 @@ bool StdMeshers_QuadToTriaAdaptor::Compute2ndPart(SMESH_Mesh& SMESHDS_Mesh * meshDS = aMesh.GetMeshDS(); int i, j, k, myShapeID = myPyramids[0]->GetNode(4)->getshapeId(); - if ( !myElemSearcher ) - myElemSearcher = SMESH_MeshEditor(&aMesh).GetElementSearcher(); + if ( myElemSearcher ) delete myElemSearcher; + myElemSearcher = SMESH_MeshEditor(&aMesh).GetElementSearcher(); SMESH_ElementSearcher* searcher = const_cast(myElemSearcher); set nodesToMove;