discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

How can I generate dependency graphs for my variables ?

C
crevettedragon
Fri, Aug 9, 2019 5:11 PM

Hello,

I am using openscad for a small  project  and the number of variable is
getting pretty big and my code messier. Some part of my code have "hard
coded" variables and other parts are much more parametric -clean - ie depend
on other variables.
I wish to make the whole code clean and I thought a parser making a
dependency graph for all the variables in my code would allow me to visually
and easily track what is to be changed and remove all parameters that could
be calculated instead of hard-coded.

Altough I could go over each variable one by one I thought it would be
cooler to learn how to automatically generate a graph.

What are you using to achieve that ?

Thank you,

--
Sent from: http://forum.openscad.org/

Hello, I am using openscad for a small project and the number of variable is getting pretty big and my code messier. Some part of my code have "hard coded" variables and other parts are much more parametric -clean - ie depend on other variables. I wish to make the whole code clean and I thought a parser making a dependency graph for all the variables in my code would allow me to visually and easily track what is to be changed and remove all parameters that could be calculated instead of hard-coded. Altough I could go over each variable one by one I thought it would be cooler to learn how to automatically generate a graph. What are you using to achieve that ? Thank you, -- Sent from: http://forum.openscad.org/
M
MichaelAtOz
Sat, Sep 28, 2019 10:25 PM

crevettedragon wrote

Hello,

I am using openscad for a small  project  and the number of variable is
getting pretty big and my code messier. Some part of my code have "hard
coded" variables and other parts are much more parametric -clean - ie
depend
on other variables.
I wish to make the whole code clean and I thought a parser making a
dependency graph for all the variables in my code would allow me to
visually
and easily track what is to be changed and remove all parameters that
could
be calculated instead of hard-coded.

Altough I could go over each variable one by one I thought it would be
cooler to learn how to automatically generate a graph.

What are you using to achieve that ?

Thank you,

--
Sent from: http://forum.openscad.org/


OpenSCAD mailing list

Discuss@.openscad

There is nothing built in obviously, I don't use an IDE, perhaps there is
support in some?


Admin - email* me if you need anything, or if I've done something stupid...

  • click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/

crevettedragon wrote > Hello, > > I am using openscad for a small project and the number of variable is > getting pretty big and my code messier. Some part of my code have "hard > coded" variables and other parts are much more parametric -clean - ie > depend > on other variables. > I wish to make the whole code clean and I thought a parser making a > dependency graph for all the variables in my code would allow me to > visually > and easily track what is to be changed and remove all parameters that > could > be calculated instead of hard-coded. > > Altough I could go over each variable one by one I thought it would be > cooler to learn how to automatically generate a graph. > > What are you using to achieve that ? > > Thank you, > > > > > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@.openscad > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org There is nothing built in obviously, I don't use an IDE, perhaps there is support in some? ----- Admin - email* me if you need anything, or if I've done something stupid... * click on my MichaelAtOz label, there is a link to email me. Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/