From 51aede29b04122754c8e8897ca37fcc9823839be Mon Sep 17 00:00:00 2001 From: adv Date: Wed, 18 Dec 2013 06:58:01 +0000 Subject: [PATCH] Minor changes. --- src/HYDROData/HYDROData_Obstacle.cxx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) 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 ); -- 2.39.2