From 10bf875e92c6b94d863c2e413ea1734bae73dfa1 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 27 Jun 2021 20:29:47 +0200 Subject: [PATCH] Remove wrong and unnecessary shape cast in derived profile --- src/ifcgeom/IfcGeomFaces.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomFaces.cpp b/src/ifcgeom/IfcGeomFaces.cpp index 6f715466f8..731ddc56dc 100644 --- a/src/ifcgeom/IfcGeomFaces.cpp +++ b/src/ifcgeom/IfcGeomFaces.cpp @@ -1179,7 +1179,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcDerivedProfileDef* l, TopoDS_S gp_Trsf2d trsf2d; if (convert_face(l->ParentProfile(), f) && IfcGeom::Kernel::convert(l->Operator(), trsf2d)) { gp_Trsf trsf = trsf2d; - face = TopoDS::Face(BRepBuilderAPI_Transform(f, trsf)); + face = BRepBuilderAPI_Transform(f, trsf).Shape(); return true; } else { return false;