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 {