Parameterised geometry

Post questions on how to use or achieve an effect in Inkscape.
chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Parameterised geometry

Postby chrisjj » Wed Jan 23, 2013 11:43 am

I would like shapes having parameters such as width, scale, tile repeat qty the values of which are drawn automatically from variables defined in a textual list that I provide e.g.

width1 = 5
width2 = 15

If this is possible, how?

Thanks.

chriswww
Posts: 383
Joined: Fri Nov 19, 2010 3:04 pm

Re: Parameterised geometry

Postby chriswww » Wed Jan 23, 2013 12:25 pm

Of course it's possible. Most things are. You just need to script it yourself to generate the svg file as per your requirements. Then you can open it in Inkscape (or a recent browser) to see the results of your efforts. You could use Inkscape's scripting ability (python) by writing your own plugin. That way you don't need to separately install a scripting language. You could also do this with "R" maths and graphing open source software package, which can also generate svg. So there's actually many ways of doing this, depending on any extra requirements on exactly how you want the shapes to come about and how much scripting you know or are willing to learn. Yet another choice is using xslt, if you're more comfortable with xml transformation technology instead of writing simple loops in a scripting language.

chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Re: Parameterised geometry

Postby chrisjj » Wed Jan 23, 2013 12:42 pm

chriswww wrote:how much scripting you know or are willing to learn


I want a ready-made solution.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Parameterised geometry

Postby brynn » Wed Jan 23, 2013 11:09 pm

chrisjj wrote:
chriswww wrote:how much scripting you know or are willing to learn


I want a ready-made solution.

Then you're out of luck.

There is an extension that will draw 3D Polyhedron (Extensions menu) and I think you can enter all the variables. But that's all know of. Maybe a CAD/autoCAD type program would do that, but I really don't know.

chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Re: Parameterised geometry

Postby chrisjj » Wed Jan 23, 2013 11:11 pm

OK, thanks.

chrisjj
Posts: 153
Joined: Thu Jan 17, 2013 10:45 am

Re: Parameterised geometry

Postby chrisjj » Wed Jan 30, 2013 11:11 am

brynn wrote:Then you're out of luck.


OK, thanks.

brynn wrote:Maybe a CAD/autoCAD type program would do that, but I really don't know.
TurboCAD apparently - checking now.


Return to “Help with using Inkscape”