From 7a4b52b5d6ee76259af9c05622c104b43dd451da Mon Sep 17 00:00:00 2001 From: gdd Date: Mon, 10 Sep 2012 10:00:36 +0000 Subject: [PATCH] Fix compilation bugs --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 0c25c72..27ca629 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -1275,15 +1275,6 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape) VerticesWithSizeMap.Clear(); VertexId2SizeMap.clear(); - SMESH_MesherHelper helper( aMesh ); - // do not call helper.IsQuadraticSubMesh() because submeshes - // may be cleaned and helper.myTLinkNodeMap gets invalid in such a case - const bool haveQudraticSubMesh = SMESH_MesherHelper( aMesh ).IsQuadraticSubMesh( aShape ); - helper.SetIsQuadratic( haveQudraticSubMesh ); - bool needMerge = false; - set< SMESH_subMesh* > edgeSubmeshes; - set< SMESH_subMesh* >& mergeSubmeshes = edgeSubmeshes; - /* Now fill the CAD object with data from your CAD * environement. This is the most complex part of a successfull * integration. @@ -1316,6 +1307,7 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape) helper.SetIsQuadratic( haveQuadraticSubMesh || (_hypothesis != NULL && _hypothesis->GetQuadraticMesh()) ); bool needMerge = false; set< SMESH_subMesh* > edgeSubmeshes; + set< SMESH_subMesh* >& mergeSubmeshes = edgeSubmeshes; // needed to prevent the opencascade memory managmement from freeing things vector curves; -- 2.39.2