Path.Area: fixed handling of closed edge

This commit is contained in:
Zheng, Lei 2017-01-23 17:26:45 +08:00
parent 8fdb235d8f
commit 2acc29de8f

View File

@ -183,8 +183,9 @@ int Area::add(CArea &area, const TopoDS_Shape &shape, const gp_Trsf *trsf,
++skipped;
if(force_coplanar) continue;
}
add(_areaOpen,BRepBuilderAPI_MakeWire(
TopoDS::Edge(it.Current())).Wire(),trsf,deflection);
TopoDS_Wire wire = BRepBuilderAPI_MakeWire(
TopoDS::Edge(it.Current())).Wire();
add(BRep_Tool::IsClosed(wire)?_area:_areaOpen,wire,trsf,deflection);
}
}