From 4ebb8cfccc01388e828a50f00d71b02a8aba04a9 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 8 Feb 2011 12:21:46 +0000 Subject: [PATCH] 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 --- src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2