From 17b988890dc65ffe63be79f219e67a0d06ebc2a1 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Fri, 12 May 2017 04:17:10 +0800 Subject: [PATCH] Path.Area: fix projection code for OCE --- src/Mod/Path/App/Area.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/App/Area.cpp b/src/Mod/Path/App/Area.cpp index d68dfabd43..e00c5da93d 100644 --- a/src/Mod/Path/App/Area.cpp +++ b/src/Mod/Path/App/Area.cpp @@ -731,7 +731,14 @@ struct WireJoiner { std::map edgesToVisit; int count = 0; for(const auto &info : edges) { - if(BRep_Tool::IsClosed(info.edge)){ +#if OCC_VERSION_HEX >= 0x070000 + if(BRep_Tool::IsClosed(info.edge)) +#else + gp_Pnt p1,p2; + getEndPoints(info.edge,p1,p2); + if(p1.SquareDistance(p2)