QCAD - 2D CAD System.
Please search for existing tasks (also closed ones) before opening a new task.
Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)
FS#122 - SVG of hatch with "hole"
Opened by Peter (hungerburg) - Sunday, 26 June 2011, 13:40 GMT+1
Last edited by Andrew (andrew) - Sunday, 26 June 2011, 14:25 GMT+1
A hatch my have “holes”, if it eg. is made of two forms, an inner form, and and outer form, where the outer form is filled while the inner form appears like a window inside of the fill, that lets the background be seen.
QCAD exports such hatches as two SVG paths in one single entity. But the “hole” is lost in the process. I know of two workarounds, that preserve the original intention of the QCAD drawing, both get the same result most of the time, the second one looking more robust and easier to implement:
# draw the outer form clockwise, draw the inner form counterclockwise
Drawing a star like in the SVG spec in QCAD actually produces the same picture – so that should be the way to go.
Sunday, 26 June 2011, 14:25 GMT+1
Reason for closing: Fixed