#include "HYDROData_Document.h"
#include "HYDROData_ShapesGroup.h"
+#include "HYDROData_ShapesTool.h"
#include <Basics_Utils.hxx>
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 );