-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Description
We can currently import & use OpenSCAD code with use(<SCAD_PATH>)
. This creates stub OpenSCAD objects for all detected modules and functions... and inserts them in the importing module's namespace. If you want to include two SCAD files with the same named function (gear()
, say, which I ran into today), you're out of luck.
A more robust way of doing this might be to create a statement like <namespace> = import_scad(<SCAD_PATH>)
that would put everything in a Python namespace. But... how would the compiled SCAD code work? I'm not sure OpenSCAD has a solution for this. Looking at this issue, it seems like OpenSCAD is still as broken as SolidPython in this respect. Hm...
Metadata
Metadata
Assignees
Labels
No labels