From d03b47e1e6ed5972e129ae4abef77a2056231043 Mon Sep 17 00:00:00 2001 From: stefkeB Date: Tue, 23 Apr 2024 17:38:59 +0200 Subject: [PATCH] Fix HDF5 conditional inclusion in GeomTree IfcGeomTree uses HDF5, but this is an optional module, so we have to wrap it with #ifdef WITH_HDF5 --- src/ifcgeom_schema_agnostic/IfcGeomTree.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifcgeom_schema_agnostic/IfcGeomTree.h b/src/ifcgeom_schema_agnostic/IfcGeomTree.h index c72da5e59f..7426f92c92 100644 --- a/src/ifcgeom_schema_agnostic/IfcGeomTree.h +++ b/src/ifcgeom_schema_agnostic/IfcGeomTree.h @@ -62,7 +62,9 @@ #include #include "clash_utils.h" +#ifdef WITH_HDF5 #include "H5Cpp.h" +#endif namespace IfcGeom { @@ -1504,6 +1506,7 @@ namespace IfcGeom { } } +#ifdef WITH_HDF5 void write_h5() { H5::H5File file("filename.h5", H5F_ACC_TRUNC); H5::Group shapes = file.createGroup("/shapes"); @@ -1714,6 +1717,7 @@ namespace IfcGeom { colours_dataset.write(flat_colours.data(), H5::PredType::NATIVE_FLOAT); } } +#endif template void apply_matrix_to_flat_verts(const std::vector& flat_list, const std::vector& matrix, std::vector& result) {