]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Minor changes.
authoradv <adv@opencascade.com>
Wed, 18 Dec 2013 06:58:01 +0000 (06:58 +0000)
committeradv <adv@opencascade.com>
Wed, 18 Dec 2013 06:58:01 +0000 (06:58 +0000)
src/HYDROData/HYDROData_Obstacle.cxx

index adf6b6da4280f0ad8cb8628c6d46580526749b98..a1807649fd95f864d1fe72addab69ab62439b0c5 100644 (file)
@@ -2,6 +2,7 @@
 #include "HYDROData_Obstacle.h"
 
 #include "HYDROData_Document.h"
+#include "HYDROData_Tool.h"
 #include "HYDROData_ShapesGroup.h"
 
 #include <Basics_Utils.hxx>
@@ -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 );