geomerative: parts of my SVG are missing
in
Contributed Library Questions
•
2 years ago
Hi,
I am just getting started with the geomerative library. I am trying to import a SVG file, get a set of points, and draw circles on them. I have created my SVG file in Inkscape - it consists of three paths. Everything is fine except that two of the paths are not drawn. My code is like this (written in Groovy, so slightly different syntax to processing):
- import geomerative.*
- RG.init(this)
- RShape s = RG.loadShape("/home/martin/Dropbox/downloads/svg/1.svg")
- ArrayList points = s.getPoints()
- for (int i = 0; i < points.size(); i++) {
- ellipse(points[i].x, points[i].y, 5, 5)
- }
Could anyone take a look at the SVG -
download it here - and see if you can spot the problem? The main part of the bike is drawn fine, but the wheels are missing.
1