Remove wrong and unnecessary shape cast in derived profile

This commit is contained in:
Thomas Krijnen
2021-06-27 20:29:47 +02:00
parent 2fd2b49709
commit 10bf875e92
+1 -1
View File
@@ -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;