From: vsv Date: Tue, 21 Oct 2014 15:03:19 +0000 (+0400) Subject: Use Compound instead Wire for sketcher X-Git-Tag: V_0.5~89 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8ca2770036b08b2cee07fe27906298cf3d8f1408;p=modules%2Fshaper.git Use Compound instead Wire for sketcher --- diff --git a/src/GeomAPI/GeomAPI_Wire.cpp b/src/GeomAPI/GeomAPI_Wire.cpp index 6932444bf..39da519fe 100644 --- a/src/GeomAPI/GeomAPI_Wire.cpp +++ b/src/GeomAPI/GeomAPI_Wire.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include @@ -37,7 +38,8 @@ void GeomAPI_Wire::addEdge(boost::shared_ptr theEdge) std::list > GeomAPI_Wire::getEdges() { TopoDS_Shape& aShape = const_cast(impl()); - BRepTools_WireExplorer aWireExp(TopoDS::Wire(aShape)); + //BRepTools_WireExplorer aWireExp(TopoDS::Wire(aShape)); + TopExp_Explorer aWireExp(aShape, TopAbs_EDGE); std::list > aResult; for (; aWireExp.More(); aWireExp.Next()) { boost::shared_ptr anEdge(new GeomAPI_Shape);