How to avoid scaling and translation problems between children shapes when loading an SVG file with geomerative RShape ?
in
Contributed Library Questions
•
2 years ago
I have a weird problem. I am using RShape objects from geomerative library to display different children shapes coming from one global shape because I want to fill each child with a different color evolving in time. When the .SVG file is displayed in one piece, all the children shapes insert in each other correctly. However if I display each child separately, the relative sizes of all the children are not correct. I must downscale some shapes and upscale others and it's hard to find the correct resizing factor for each shape. I must translate each shape one after another too so that it finds its relative place again.
So, is there a way to find the correct scaling factor for each child (and maybe the position on plane) within the SVG data ? I guess these data must exist in the SVG file, otherwise how could the global picture be drawn correctly ? Or is there another trick to avoid such a painful puzzle ? Can I solve this within Processing easily or would it be better to modify something in the SVG file using Inkscape ?
So, is there a way to find the correct scaling factor for each child (and maybe the position on plane) within the SVG data ? I guess these data must exist in the SVG file, otherwise how could the global picture be drawn correctly ? Or is there another trick to avoid such a painful puzzle ? Can I solve this within Processing easily or would it be better to modify something in the SVG file using Inkscape ?
1