Refactoring

This commit is contained in:
Thomas Krijnen
2022-11-13 11:04:16 +01:00
parent 6558f68cd4
commit 3736a8b4b4
28 changed files with 849 additions and 1105 deletions
@@ -28,6 +28,7 @@
#include <BRep_Tool.hxx>
#include <BRepTools.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <BOPAlgo_Operation.hxx>
namespace IfcGeom {
namespace util {
@@ -84,6 +85,14 @@ namespace IfcGeom {
bool boolean_subtraction_2d_using_builder(const TopoDS_Shape& a_input, const TopTools_ListOfShape& b_input, TopoDS_Shape& result, double eps);
struct boolean_settings {
bool debug, attempt_2d;
double precision;
};
bool boolean_operation(const boolean_settings& settings, const TopoDS_Shape&, const TopTools_ListOfShape&, BOPAlgo_Operation, TopoDS_Shape&, double fuzziness = -1.);
bool boolean_operation(const boolean_settings& settings, const TopoDS_Shape&, const TopoDS_Shape&, BOPAlgo_Operation, TopoDS_Shape&, double fuzziness = -1.);
}
}