rikrd / geomerative

Geomerative is a library for Processing. It extends 2D geometry operations to facilitate generative geometry. Includes a TrueType font and an SVG interpreters. This library exposes the shapes (such as vector drawings or typographies) in a more approchable way. Geomerative makes it easy to access the contours, the control points and the curve points, making it easy to develop generative typography and geometry pieces in Processing.
http://www.ricardmarxer.com/geomerative
GNU General Public License v3.0
176 stars 29 forks source link

Why is it this (large) SVG throws an ArrayIndexOutOfBounds #13

Open cristianvogel opened 3 years ago

cristianvogel commented 3 years ago

Hi.

I have a photo that was traced in Illustrator, and I would like to import it with all the colours. It has 19000 points.

But Geomerative doesn't like, at RG.loadShape() throwing the above exception - which is a shame!

If I export the same as a simple SVG in Illustrator, it comes in but I don't know how to access the embedded SVG fill colours, when drawing by hand from the pointPaths array....

the svg data is like this, nothing fancy.

`

` ... continues
cristianvogel commented 3 years ago

Please ignore - it was down to Illustrator grouping the Traced image and saving this. Seems like then, there is only one child and many many points. So now I have 4000 child elements and I think I can now extract styles....