From d12cacbd2ed9143cd79339caec417438f3ee8d43 Mon Sep 17 00:00:00 2001 From: David Leverton Date: Wed, 13 Feb 2019 15:34:50 +0000 Subject: [PATCH] Fix Position handling for IfcSurfaceCurveSweptAreaSolid --- src/ifcgeom/IfcGeomShapes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/IfcGeomShapes.cpp b/src/ifcgeom/IfcGeomShapes.cpp index 1beb4cbcc6..c4ba25ce9b 100644 --- a/src/ifcgeom/IfcGeomShapes.cpp +++ b/src/ifcgeom/IfcGeomShapes.cpp @@ -885,7 +885,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcRectangularTrimmedSurface* l, } bool IfcGeom::Kernel::convert(const IfcSchema::IfcSurfaceCurveSweptAreaSolid* l, TopoDS_Shape& shape) { - gp_Trsf directrix, position; + gp_Trsf directrix; TopoDS_Shape face; TopoDS_Wire wire, section; @@ -964,7 +964,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcSurfaceCurveSweptAreaSolid* l, if (has_position) { // IfcSweptAreaSolid.Position (trsf) is an IfcAxis2Placement3D // and therefore has a unit scale factor - shape.Move(position); + shape.Move(trsf); } return true;