From c9ba9715090ac6e61c56c3536ae0566110dca09a Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 22 Sep 2010 11:41:25 +0000 Subject: [PATCH] issue 0020959: HEXA_3D fails on shell Fix DependsOn() for a not-closed SHELL not in SOLID --- src/SMESH/SMESH_subMesh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index d4a8772cf..91993b332 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -381,8 +381,8 @@ const map < int, SMESH_subMesh * >& SMESH_subMesh::DependsOn() if ( BRep_Tool::IsClosed(exp.Current() )) InsertDependence(exp.Current()); //only shell not in solid else - for (TopExp_Explorer exp(exp.Current(), TopAbs_FACE); exp.More();exp.Next()) - InsertDependence(exp.Current()); // issue 0020959: HEXA_3D fails on shell + for (TopExp_Explorer expF(exp.Current(), TopAbs_FACE); expF.More();expF.Next()) + InsertDependence(expF.Current()); // issue 0020959: HEXA_3D fails on shell } for (TopExp_Explorer exp(_subShape, TopAbs_FACE, TopAbs_SHELL); exp.More();exp.Next()) -- 2.39.2