]> SALOME platform Git repositories - modules/hydro.git/blobdiff - src/HYDROData/HYDROData_Obstacle.cxx
Salome HOME
Create goups for stream.
[modules/hydro.git] / src / HYDROData / HYDROData_Obstacle.cxx
index adf6b6da4280f0ad8cb8628c6d46580526749b98..345c14a7fa9010e33af31ff3a37013ca3e40248f 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "HYDROData_Document.h"
 #include "HYDROData_ShapesGroup.h"
+#include "HYDROData_ShapesTool.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_ShapesTool::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 );