From 691e5766c459cd700e2d9c5155402a820e49a9f0 Mon Sep 17 00:00:00 2001 From: aothms Date: Sat, 22 Mar 2014 21:13:02 +0000 Subject: [PATCH] Take into account face location when serializing shape as tesselated faceset. --- src/ifcgeom/IfcGeomFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index 1b92916bf1..12f8bc28f9 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -532,7 +532,7 @@ IfcSchema::IfcProductDefinitionShape* IfcGeom::tesselate(TopoDS_Shape& shape, do const TColgp_Array1OfPnt& nodes = tri->Nodes(); std::vector vertices; for (int i = 1; i <= nodes.Length(); ++i) { - const gp_Pnt& pnt = nodes(i); + gp_Pnt pnt = nodes(i).Transformed(loc); std::vector xyz; xyz.push_back(pnt.X()); xyz.push_back(pnt.Y()); xyz.push_back(pnt.Z()); IfcSchema::IfcCartesianPoint* cpnt = new IfcSchema::IfcCartesianPoint(xyz); vertices.push_back(cpnt);