mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Remove wrong and unnecessary shape cast in derived profile
This commit is contained in:
@@ -1179,7 +1179,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcDerivedProfileDef* l, TopoDS_S
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
if (convert_face(l->ParentProfile(), f) && IfcGeom::Kernel::convert(l->Operator(), trsf2d)) {
|
if (convert_face(l->ParentProfile(), f) && IfcGeom::Kernel::convert(l->Operator(), trsf2d)) {
|
||||||
gp_Trsf trsf = trsf2d;
|
gp_Trsf trsf = trsf2d;
|
||||||
face = TopoDS::Face(BRepBuilderAPI_Transform(f, trsf));
|
face = BRepBuilderAPI_Transform(f, trsf).Shape();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user