mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-31 08:56:34 +00:00
Fix Position handling for IfcSurfaceCurveSweptAreaSolid
This commit is contained in:
@@ -885,7 +885,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcRectangularTrimmedSurface* l,
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool IfcGeom::Kernel::convert(const IfcSchema::IfcSurfaceCurveSweptAreaSolid* l, TopoDS_Shape& shape) {
|
bool IfcGeom::Kernel::convert(const IfcSchema::IfcSurfaceCurveSweptAreaSolid* l, TopoDS_Shape& shape) {
|
||||||
gp_Trsf directrix, position;
|
gp_Trsf directrix;
|
||||||
TopoDS_Shape face;
|
TopoDS_Shape face;
|
||||||
TopoDS_Wire wire, section;
|
TopoDS_Wire wire, section;
|
||||||
|
|
||||||
@@ -964,7 +964,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcSurfaceCurveSweptAreaSolid* l,
|
|||||||
if (has_position) {
|
if (has_position) {
|
||||||
// IfcSweptAreaSolid.Position (trsf) is an IfcAxis2Placement3D
|
// IfcSweptAreaSolid.Position (trsf) is an IfcAxis2Placement3D
|
||||||
// and therefore has a unit scale factor
|
// and therefore has a unit scale factor
|
||||||
shape.Move(position);
|
shape.Move(trsf);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user