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
+1 -1
View File
@@ -17,7 +17,7 @@
* *
********************************************************************************/
#ifdef WITH_HDF5
#if defined(WITH_HDF5) && defined(IFOPSH_WITH_OPENCASCADE)
#include "HdfSerializer.h"
+1 -1
View File
@@ -20,7 +20,7 @@
#ifndef HDFSERIALIZER_H
#define HDFSERIALIZER_H
#ifdef WITH_HDF5
#if defined(WITH_HDF5) && defined(IFOPSH_WITH_OPENCASCADE)
#include <set>
#include <string>
+3
View File
@@ -17,6 +17,8 @@
* *
********************************************************************************/
#ifdef IFOPSH_WITH_OPENCASCADE
#ifndef IGESSERIALIZER_H
#define IGESSERIALIZER_H
@@ -62,3 +64,4 @@ public:
};
#endif
#endif
@@ -17,6 +17,8 @@
* *
********************************************************************************/
#ifdef IFOPSH_WITH_OPENCASCADE
#include "OpenCascadeBasedSerializer.h"
#include "../ifcparse/utils.h"
@@ -62,3 +64,6 @@ const char* OpenCascadeBasedSerializer::getSymbolForUnitMagnitude(float mag) {
return 0;
}
}
#endif
@@ -17,6 +17,8 @@
* *
********************************************************************************/
#ifdef IFOPSH_WITH_OPENCASCADE
#ifndef OPENCASCADEBASEDSERIALIZER_H
#define OPENCASCADEBASEDSERIALIZER_H
@@ -47,3 +49,4 @@ public:
};
#endif
#endif
+4 -1
View File
@@ -17,6 +17,8 @@
* *
********************************************************************************/
#ifdef IFOPSH_WITH_OPENCASCADE
#ifndef STEPSERIALIZER_H
#define STEPSERIALIZER_H
@@ -58,4 +60,5 @@ public:
}
};
#endif
#endif
#endif
+5 -1
View File
@@ -19,6 +19,8 @@
* *
********************************************************************************/
#ifdef IFOPSH_WITH_OPENCASCADE
#include "../ifcgeom/abstract_mapping.h"
#include <string>
@@ -2436,4 +2438,6 @@ std::string SvgSerializer::writeMetadata(const drawing_meta& m) {
}};
return namespace_prefix_ + "plane=\""+ array_to_string(m4) +"\" " +
namespace_prefix_ + "matrix3=\"" + array_to_string(m.matrix_3) + "\"";
}
}
#endif
+3
View File
@@ -19,6 +19,8 @@
* *
********************************************************************************/
#ifdef IFOPSH_WITH_OPENCASCADE
#ifndef SVGSERIALIZER_H
#define SVGSERIALIZER_H
@@ -343,3 +345,4 @@ protected:
};
#endif
#endif