From d34b1e9545c3c47f8906eed23cb492456c410995 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 1 Aug 2023 08:56:16 +0800 Subject: [PATCH] Fix compilation of wrapper --- src/ifcgeom/kernels/opencascade/IfcGeomTree.h | 2 +- src/ifcgeom/taxonomy.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/kernels/opencascade/IfcGeomTree.h b/src/ifcgeom/kernels/opencascade/IfcGeomTree.h index 29b4bcec01..95826db674 100644 --- a/src/ifcgeom/kernels/opencascade/IfcGeomTree.h +++ b/src/ifcgeom/kernels/opencascade/IfcGeomTree.h @@ -270,7 +270,7 @@ namespace IfcGeom { std::vector select(const IfcGeom::BRepElement* elem, bool completely_within = false, double extend = -1.e-5) const { auto shp = elem->geometry().as_compound(); auto compound = ((OpenCascadeShape*)shp)->shape(); - const auto& m = elem->transformation().data().ccomponents(); + const auto& m = elem->transformation().data()->ccomponents(); gp_Trsf tr; tr.SetValues( m(0, 0), m(0, 1), m(0, 2), m(0, 3), diff --git a/src/ifcgeom/taxonomy.h b/src/ifcgeom/taxonomy.h index 042151f509..92dfcf9b75 100644 --- a/src/ifcgeom/taxonomy.h +++ b/src/ifcgeom/taxonomy.h @@ -697,7 +697,7 @@ struct collection_base : public geom_item { struct collection : public collection_base { DECLARE_PTR(collection) - virtual collection_base* clone_() const { return new collection(*this); } + virtual collection* clone_() const { return new collection(*this); } virtual kinds kind() const { return COLLECTION; } virtual size_t calc_hash() const {