From 6aecc60e83e4e6ee2d0cb541542213a98aa37af3 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 10 Apr 2017 02:40:45 +0800 Subject: [PATCH] Path.Area: suppress holes when project When doing projection, there doesn't seem to have a reliable way of knowing which edges are for inner holes. So we just suppress holes altogether, and make it as outline only projection. --- src/Mod/Path/App/Area.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/App/Area.cpp b/src/Mod/Path/App/Area.cpp index d2d8db8fb0..af4ceb7de6 100644 --- a/src/Mod/Path/App/Area.cpp +++ b/src/Mod/Path/App/Area.cpp @@ -554,7 +554,11 @@ struct WireJoiner { if(BRep_Tool::IsClosed(e)){ BRepBuilderAPI_MakeWire mkWire; mkWire.Add(e); - builder.Add(comp,mkWire.Wire()); + const TopoDS_Wire &wire = mkWire.Wire(); + if(bbox && Area::getWireDirection(wire)>0) + builder.Add(comp,wire.Reversed()); + else + builder.Add(comp,wire); return; } gp_Pnt p1,p2;