svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
647 stars 172 forks source link

Hatch-filling objects actually hatches empty objects on svg imports #312

Closed Skynerz closed 1 year ago

Skynerz commented 1 year ago

Hello, I designed several shapes in a .svg file using inkscape (see attached files). When I try to import the file by dragging in the window, the generated gcode shows that every area is hatch-filled. I tried to change the filling options by filled the "empty" regions with white, and I also tried to change the .svg export option (Inkscape's svg / plain svg) but nothing changed.

image image

Am I doing anything wrong?

svenhb commented 1 year ago

Hi, "no fill" should work, could you upload the svg here? Perhaps other keyword? You can disable hatchfill in the import options and need to disable also in path modification: image image

Skynerz commented 1 year ago

I want the filled objects to be hatched and the empty ones not to. If I disable it in "Path Import", the filled objects will no longer be hatched, right? I didn't enable it in Path Modification.

Here are the files I get by exporting with Inkscape with "Inkscape SVG" and "Plain SVG" export option:

Ploxy_inkscapesvg Ploxy_plainsvg

svenhb commented 1 year ago

Seems to be bug in the text import. If you convert the text to path before importing to GRBL-Plotter it should work. But the hatch fill may have problems with non-filled areas within filled areas... Then you need to enable this, but not the other option: image

Skynerz commented 1 year ago

You're right, converting objects into paths partly solved the problem! The letters aren't filled anymore, but if I fill any object, every closed area becomes hatched🤔 I feel it's like the option "Fill closed paths" is enabled if an object is partly filled. I also double checked that the inner regions are actually not considered as filled regions in Inkscape and confirm they definitely are empty.

image

Here's the file: Ploxy_mini