From b75ea290e87281c2fbfc565cb693bfd4ba17718e Mon Sep 17 00:00:00 2001 From: JAE JOON LEE Date: Wed, 29 Mar 2023 14:18:12 +0900 Subject: [PATCH] code added for bounding box translation --- Xbim.Ifc/Extensions/IfcStoreGeometryExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Xbim.Ifc/Extensions/IfcStoreGeometryExtensions.cs b/Xbim.Ifc/Extensions/IfcStoreGeometryExtensions.cs index ec4f98ae6..fcc8b2e5d 100644 --- a/Xbim.Ifc/Extensions/IfcStoreGeometryExtensions.cs +++ b/Xbim.Ifc/Extensions/IfcStoreGeometryExtensions.cs @@ -67,6 +67,7 @@ public static void SaveAsWexBim(this IModel model, BinaryWriter binaryStream, IE { binaryStream.Write((Int32)(r.Population)); var bounds = r.ToXbimRect3D(); + bounds = XbimRect3D.TransformBy(bounds, t); var centre = t.Transform(r.Centre); //write out the centre of the region binaryStream.Write((Single)centre.X);