]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Use Compound instead Wire for sketcher
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 21 Oct 2014 15:03:19 +0000 (19:03 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 21 Oct 2014 15:03:19 +0000 (19:03 +0400)
src/GeomAPI/GeomAPI_Wire.cpp

index 6932444bf75af2be55d57c4d5afe616e47caa31b..39da519fe8aed86fc11cd9c2dff6d460de9359d6 100644 (file)
@@ -13,6 +13,7 @@
 #include <TopoDS_Wire.hxx>
 #include <BRep_Builder.hxx>
 #include <BRepTools_WireExplorer.hxx>
+#include <TopExp_Explorer.hxx>
 
 #include <list>
 
@@ -37,7 +38,8 @@ void GeomAPI_Wire::addEdge(boost::shared_ptr<GeomAPI_Shape> theEdge)
 std::list<boost::shared_ptr<GeomAPI_Shape> > GeomAPI_Wire::getEdges()
 {
   TopoDS_Shape& aShape = const_cast<TopoDS_Shape&>(impl<TopoDS_Shape>());
-  BRepTools_WireExplorer aWireExp(TopoDS::Wire(aShape));
+  //BRepTools_WireExplorer aWireExp(TopoDS::Wire(aShape));
+  TopExp_Explorer aWireExp(aShape, TopAbs_EDGE);
   std::list<boost::shared_ptr<GeomAPI_Shape> > aResult;
   for (; aWireExp.More(); aWireExp.Next()) {
     boost::shared_ptr<GeomAPI_Shape> anEdge(new GeomAPI_Shape);