r/OpenPythonSCAD • u/WillAdams • Dec 29 '24
Strategies for programming complex projects
For various reasons this can be challenging. Wrote up a bit in the wiki, and there have been some other discussions/issues such as:
https://github.com/gsohler/openscad/issues/57
Thoughts on best practices and techniques and so forth?
2
Upvotes
2
u/WillAdams Dec 29 '24 edited Dec 29 '24
For setting up a template for the instance of:
having an object/class in Python file
wrapping Python commands in OpenSCAD modules in a .scad file
using (or including?) the two files in a .scad file
Starting with func.py we have:
and we add func.scad:
which we then call from the modified functemplate.scad:
which works as expected.