mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
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.
This commit is contained in:
committed by
Thomas Krijnen
parent
5b9a315823
commit
4fd2190e1d
@@ -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(" <ellipse style=\"stroke:black; fill:none;\" rx=\"");
|
||||
radii.push_back(path.add(e.MajorRadius()));
|
||||
path.add("\" ry\"");
|
||||
path.add("\" ry=\"");
|
||||
radii.push_back(path.add(e.MinorRadius()));
|
||||
path.add("\" cx=\"");
|
||||
xcoords.push_back(path.add(center.X()));
|
||||
|
||||
Reference in New Issue
Block a user