Large refactoring of convert(IfcFace*) to support triangulation of non-planar faces with inner boundaries

This commit is contained in:
Thomas Krijnen
2019-05-17 12:31:23 +02:00
parent fa8ff0d878
commit 1d5e560e66
3 changed files with 270 additions and 242 deletions
+2 -1
View File
@@ -324,7 +324,8 @@ public:
void sequence_of_point_to_wire(const TColgp_SequenceOfPnt&, TopoDS_Wire&, bool closed);
bool approximate_plane_through_wire(const TopoDS_Wire&, gp_Pln&, double eps=-1.);
bool flatten_wire(TopoDS_Wire&);
bool triangulate_wire(const TopoDS_Wire&, TopTools_ListOfShape&);
/// Triangulate the set of wires. The firstmost wire is assumed to be the outer wire.
bool triangulate_wire(const std::vector<TopoDS_Wire>&, TopTools_ListOfShape&);
bool wire_intersections(const TopoDS_Wire & wire, TopTools_ListOfShape & wires);
void select_largest(const TopTools_ListOfShape& shapes, TopoDS_Shape& largest);