Paint tool ignores some text character paths imported as SVG
The paint tool ignores randomly a selected group of character while generating geometry! I have tried changing exported .svg and fonts on inkscape. no luck!
Comments (16)
-
-
reporter - attached drawing-5.svg
<div class="preview-container wiki-content"><!-- loaded via ajax --></div> <div class="mask"></div> </div>
</div> </form>
-
reporter Hello Marius,
I have attached a five letter word! it shows how it ignores the first three this time!
-
Hi Rami,
I have tested and found that I was discarding the polygons that were not valid. And guess what… by allowing those not-valid polygons I get full paint. Weird.
In any case I’ve updated the code in mycooking-pot
repository. See the latest commit: https://bitbucket.org/marius_stanciu/flatcam_beta/branch/Beta_8.995
If you care to run it from sources: https://bitbucket.org/marius_stanciu/flatcam_beta/get/Beta_8.995.zipBest regards,
Marius -
reporter I agree, it is weird! Thanks for the effort! I will run it from source!
-
Oops, looks like using your SVG, I still get a part of the
i
letter that is not painted…. -
reporter I am unable to run flatcam from the source, i need Winpython for that! I never used it and it seems complicated for me
-
reporter Is there anything i can do while creating the paths before exporting the svg, so that the polygons remain valid? Meaning why are they considered invalid in the first place?
-
Unfortunately the problem is due of how the SVG file is parsed. For example an
i
is made out of the body of the letter and an point. Both are polygons and the parsing is creating an invalid polygon with an exterior (the point) and an so-called ‘interior’ (the body of the letter) although it is incorrect because the ‘interior’ is supposed to be inside the other polygon which is not the case.
I will try to improve the parsing for those cases. -
reporter Well after playing around! if you edit the geometry in the edit mode and use the union command, they you can paint them all, but this time the holes in the characters are filled as well.
-
Actually, I think I fixed this in the latest commit on my repo.
https://bitbucket.org/marius_stanciu/flatcam_beta/branch/Beta_8.995
-
reporter Now i need to learn how to run Flatcam from the source using Winpython! never done that before!
-
reporter Many thanks Marius
-
I did a video on YouTube on how to do it….
https://www.youtube.com/watch?v=doPdeA0YgzQ&t=482s -
Many thanks Marius
With welcome.
-
reporter - changed status to resolved
Resolved with running from source!
- Log in to comment
Can you post here the SVG file? Ideally the smallest one (one letter) that still show the problem.