LaserWeb / LaserWeb4

Collaborative effort on the next version of LaserWeb / CNCWeb
GNU Affero General Public License v3.0
706 stars 191 forks source link

Clipped (cropped) Inkscape SVG files do not maintain the clipping in LW4 #655

Closed awmt102 closed 2 months ago

awmt102 commented 1 year ago

When i apply a clip (crop) to an object in Inkscape it clips correctly. When I import this into LW4 the clip is not pulled through and the entire unclipped element is visible. Example files attached.

LaserWeb 4.0.999 on Mac OS Ventura 13.2.1 Inkscape 1.2.1

test.json.txt test

Screenshot 2023-04-27 at 12 39 21
cprezzi commented 4 months ago

If something is shown in LaserWeb, it obviously was in the svg. So your croping didn't work. Instead of croping, you could try to copy only the needed parts to a new file.

easytarget commented 2 months ago

https://forum.makerforums.info/t/clipped-cropped-inkscape-svg-files-do-not-maintain-the-clipping-in-lw4/88040 and https://forum.makerforums.info/t/clipped-cropped-inkscape-svg-files-do-not-maintain-the-clipping-in-lw4/88040/4

Are essentially the same topic; LW takes a very simple approach and generates paths for all lines and curves in the source. It has no concept of 'clipping', the above topics cover this and how to work around.