diff --git a/src/ifcgeomserver/IfcGeomServer.cpp b/src/ifcgeomserver/IfcGeomServer.cpp index fe82a3f87c..a89ff64998 100644 --- a/src/ifcgeomserver/IfcGeomServer.cpp +++ b/src/ifcgeomserver/IfcGeomServer.cpp @@ -47,11 +47,15 @@ #include #endif +#include "../ifcgeom/schema_agnostic/opencascade/OpenCascadeConversionResult.h" + #include #include #include #include #include +#include +#include #include @@ -479,7 +483,7 @@ public: boost::optional largest_face_dir; { - TopoDS_Compound compound = elem_->geometry().as_compound(true); + TopoDS_Compound compound = TopoDS::Compound(((IfcGeom::OpenCascadeShape*) elem_->geometry().as_compound(true))->shape()); TopExp_Explorer exp(compound, TopAbs_FACE); for (; exp.More(); exp.Next()) { GProp_GProps prop;