r/OpenPythonSCAD • • Dec 11 '24

editor support?

Is there a way to get auto-completions to work in my editor? Usually I'd just activate a VM and pip install a package, but you're... packaging your own Python?

3 Upvotes

33 comments sorted by

View all comments

Show parent comment

3

u/gadget3D Dec 11 '24

You cannot compare SolidPython2 with PythonSCAD. SolidPython2 is a translator from python to OpenSCAD whereas PythonSCAD is C code which parses python code directly and sets up OpenSCAD internal data structures to display models.

Each of those have its advantages PythonSCAD can easily establish new Primitives in fast C and even provide internal vertex data, whereas SolidPython2 is qiote independent on python versions ...

Clear, that everbody should use, what best fits to his needs.

2

u/naught-me Dec 11 '24

I see. I had thought that it was something like that.

Seems like your approach would generally be better, if your goal is just raw CAD capabilities. Doesn't make deciding any easier.

2

u/gadget3D Dec 11 '24

Haha no. I feel, that raw CAD capabilities is way beyound CAD + a nice language can do together. maybe look at my gds file parser. gds files store data how to produce microchips and OpenSCAd is a very good way to graphically visualize that.