How do I specify mesh parameters when using OpenSCAD from the Command Line?

314 Views Asked by At

I am trying to export a ton of simple shapes generated in OpenSCAD and exported as STL files with varying mesh coarse-ness. I'm using a combination of solidpython and subprocesses to call openscad from the command line but I'm not sure how to use the arguments to specify any of the mesh parameters. I think I have to use the -d argument but I am unsure.

Anything you can offer would be a huge help for me to avoid having to manually save each STL through the GUI.

1

There are 1 best solutions below

0
On

I have a script and system for doing something similar to this at https://github.com/tinkerology/buildmodels. It uses a bash script and not python. It could be modified easily to handle your needs.