From ce4d8a159eb31d70b1d7deb434c53c795080e0a5 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 28 Feb 2013 14:45:34 +0000 Subject: [PATCH] fix failure of non-regression test SMESH_TEST/Grids/smesh/imps8/I1 Restore functioning of "Use Internal Vertices of all faces" option --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 69a9640..21be167 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -697,7 +697,7 @@ void BLSURFPlugin_BLSURF::SetParameters( const BLSURFPlugin_Hypothesis* hyp, cadsurf_session_t * css, precad_session_t * pcs, - const TopoDS_Shape& GeomShape, + const TopoDS_Shape& theGeomShape, bool * use_precad ) { @@ -705,7 +705,7 @@ void BLSURFPlugin_BLSURF::SetParameters( // Clear map so that it is not stored in the algorithm with old enforced vertices in it EnfVertexCoords2EnfVertexList.clear(); - double diagonal = SMESH_Mesh::GetShapeDiagonalSize( GeomShape ); + double diagonal = SMESH_Mesh::GetShapeDiagonalSize( theGeomShape ); double bbSegmentation = _gen->GetBoundaryBoxSegmentation(); int _physicalMesh = BLSURFPlugin_Hypothesis::GetDefaultPhysicalMesh(); int _geometricMesh = BLSURFPlugin_Hypothesis::GetDefaultGeometricMesh(); @@ -1139,7 +1139,7 @@ void BLSURFPlugin_BLSURF::SetParameters( std::string grpName = BLSURFPlugin_Hypothesis::GetInternalEnforcedVertexAllFacesGroup(hyp); MESSAGE("Setting Internal Enforced Vertices"); gp_Pnt aPnt; - TopExp_Explorer exp (GeomShape, TopAbs_FACE); + TopExp_Explorer exp (theGeomShape, TopAbs_FACE); for (; exp.More(); exp.Next()){ MESSAGE("Iterating shapes. Shape type is " << exp.Current().ShapeType()); TopExp_Explorer exp_face (exp.Current(), TopAbs_VERTEX, TopAbs_EDGE); -- 2.39.2