Draw many random triangle-permutations?

Post questions on how to use or achieve an effect in Inkscape.
dr.emmet2k

Draw many random triangle-permutations?

Postby dr.emmet2k » Sat Dec 05, 2009 7:25 pm

Hello Forum,

I'm trying to solve a problem, which a friend of mine has stumbled upon... Maybe someone can give me a hint?

I have to draw, say 30 or 300, randomly sized, shaped and rotated triangles. Lateron some distinct measures of these triangles are needed (like length of side a or angle alpha of some of the triangles)

I thought about solving this with Inkscape and "automated clones". Did one triangle, shift X/Y by row/collumn and rotated it with random, that works. Changing of the shape is possible too, but not that good. And I have to set linewidth to a standard value, after cloning... Is that possible?

But my main question remains: How can I print the measures of the triangle-sides and angles in an automated way with Inkscape? I thought about running a script over the raw-svg, fiddling out the triangles and printing the coordinates in a file... then calculating the measures in cm out of these coordinates... seems very complicated and error prone, though. Any other ideas?

Thanks and greetings

Return to “Help with using Inkscape”