Skip to content

Namespaces needed for imported scad code.  #109

@etjones

Description

@etjones

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions