Make occt optional

This commit is contained in:
Thomas Krijnen
2023-03-22 11:17:14 +01:00
parent cb35378a73
commit 2b1b79bf1c
28 changed files with 187 additions and 134 deletions
+8 -4
View File
@@ -80,9 +80,13 @@
%{
#include "../ifcgeom/Iterator.h"
#include "../ifcgeom/taxonomy.h"
#ifdef IFOPSH_WITH_OPENCASCADE
#include "../ifcgeom/Serialization/Serialization.h"
#include "../ifcgeom/kernels/opencascade/IfcGeomTree.h"
#include <BRepTools_ShapeSet.hxx>
#endif
#include "../serializers/SvgSerializer.h"
#include "../serializers/WavefrontObjSerializer.h"
#include "../serializers/HdfSerializer.h"
@@ -121,8 +125,6 @@
#include "../ifcparse/utils.h"
#include "../svgfill/src/svgfill.h"
#include <BRepTools_ShapeSet.hxx>
%}
// Create docstrings for generated python code.
@@ -137,8 +139,12 @@
%module ifcopenshell_wrapper %{
#include "../ifcgeom/Converter.h"
#include "../ifcgeom/taxonomy.h"
#ifdef IFOPSH_WITH_OPENCASCADE
#include "../ifcgeom/Serialization/Serialization.h"
#include "../ifcgeom/kernels/opencascade/IfcGeomTree.h"
#include <BRepTools_ShapeSet.hxx>
#endif
#include "../ifcgeom/Iterator.h"
#include "../serializers/SvgSerializer.h"
@@ -181,8 +187,6 @@
#include "../ifcparse/utils.h"
#include "../svgfill/src/svgfill.h"
#include <BRepTools_ShapeSet.hxx>
%}
%include "IfcGeomWrapper.i"