From 8ca2770036b08b2cee07fe27906298cf3d8f1408 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 21 Oct 2014 19:03:19 +0400 Subject: [PATCH] Use Compound instead Wire for sketcher --- src/GeomAPI/GeomAPI_Wire.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2