From: adv Date: Wed, 18 Dec 2013 06:58:01 +0000 (+0000) Subject: Minor changes. X-Git-Tag: BR_hydro_v_0_6~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=51aede29b04122754c8e8897ca37fcc9823839be;p=modules%2Fhydro.git Minor changes. --- diff --git a/src/HYDROData/HYDROData_Obstacle.cxx b/src/HYDROData/HYDROData_Obstacle.cxx index adf6b6da..a1807649 100644 --- a/src/HYDROData/HYDROData_Obstacle.cxx +++ b/src/HYDROData/HYDROData_Obstacle.cxx @@ -2,6 +2,7 @@ #include "HYDROData_Obstacle.h" #include "HYDROData_Document.h" +#include "HYDROData_Tool.h" #include "HYDROData_ShapesGroup.h" #include @@ -354,20 +355,10 @@ void HYDROData_Obstacle::createGroupObjects() if ( !anObstacleShape.IsNull() ) { TopTools_SequenceOfShape aWireEdges; - - TopExp_Explorer anExp( anObstacleShape, TopAbs_EDGE ); - for ( ; anExp.More(); anExp.Next() ) - { - TopoDS_Edge anEdge = TopoDS::Edge( anExp.Current() ); - if ( anEdge.IsNull() ) - continue; - - aWireEdges.Append( anEdge ); - } - + HYDROData_Tool::ExploreShapeToShapes( anObstacleShape, TopAbs_EDGE, aWireEdges ); if ( !aWireEdges.IsEmpty() ) { - QString aWireGroupName = GetName() + "_External_Wire"; + QString aWireGroupName = GetName() + "_Outer_Wire"; Handle(HYDROData_ShapesGroup) anExtWireGroup = createGroupObject(); anExtWireGroup->SetName( aWireGroupName );