From 34e2ff31bbcaee059839843128479e516a9b112c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Granskogen=20Bj=C3=B8rnstad?= Date: Mon, 4 Dec 2017 17:06:13 +0100 Subject: [PATCH] SvgSerializer: Fix bug in ellipse writeout Add a missing "=" to create a valid SVG for ellipses. I accidentally stumbled upon a way to actually get an ellipse in SVG by tilting a cylinder. If I tilt the cylinder via the `ObjectPlacement` of the `IfcProduct` I get an ellipse. If I set the `ExtrudedDirection` of the `IfcExtrudedAreasolid`, however, I get a sampled path. --- src/ifcconvert/SvgSerializer.cpp | 2 +- test/input/cylinders.ifc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ifcconvert/SvgSerializer.cpp b/src/ifcconvert/SvgSerializer.cpp index 695923cd4b..d2eab2219f 100644 --- a/src/ifcconvert/SvgSerializer.cpp +++ b/src/ifcconvert/SvgSerializer.cpp @@ -107,7 +107,7 @@ void SvgSerializer::write(path_object& p, const TopoDS_Wire& wire) { // Write the ellipse with major radius along X axis: path.add("