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.
This commit is contained in:
Zheng, Lei
2017-04-10 02:40:45 +08:00
committed by Yorik van Havre
parent 92e6edff90
commit 6aecc60e83

View File

@@ -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;