]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Regression of the test case imps/A1
authoreap <eap@opencascade.com>
Tue, 8 Feb 2011 12:21:46 +0000 (12:21 +0000)
committereap <eap@opencascade.com>
Tue, 8 Feb 2011 12:21:46 +0000 (12:21 +0000)
  In Compute2ndPart(), create a new SMESH_ElementSearcher to avoid
  search of volumes in a proxy mesh contaiting only faces

src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx

index b0204258988607ddf899d87d8192ef7c4a90619b..c8bc5d9dad83eb67d7b3478da1782f4af7e7e0bd 100644 (file)
@@ -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<SMESH_ElementSearcher*>(myElemSearcher);
 
   set<const SMDS_MeshNode*> nodesToMove;