r/OpenPythonSCAD • u/PurchaseSpecific7699 • Mar 30 '25
OpenPythonSCAD: Integration status, performance, and use of external libraries
Hey everyone,
I’ve got a few general questions regarding PythonSCAD and its integration with OpenSCAD:
- Integration status Has PythonSCAD already been fully merged into OpenSCAD and enabled by default? If not, is there any rough ETA for when this is expected?
(Alternatively, is there an option or ongoing effort to merge recent changes from OpenSCAD’s master branch into PythonSCAD, to keep it up to date?)
2. Performance
Are there any known performance drawbacks to using PythonSCAD compared to standard OpenSCAD?
If so, are there best practices or guidelines to help minimize the performance hit?
3. Using Python libraries
Is it possible to import and use external Python libraries within PythonSCAD scripts?
If so, could someone point to a guide or example?
(I saw this asked before but couldn’t quite figure out the current state)
Appreciate any insights. Thanks!
View all comments
Show parent comment
3
u/gadget3D Mar 30 '25
Sorry, there are no regular CI builds, but of course it would be nice to have. This is something I did not yet spend time in. Any contribution appreciated.
Yes, there is indeed a timing overhead needed to parse the python code for full, translate, etc. But at the same time, there is no overhead spent in the SCAD parser. As both parser are probably similar in timing and parsing code time is neglible in contrast to geomtry evaluation time, I think this would not be a concern to you.
Yes, this is actually the noble version to use extgernal libraries. This is how it *should* definitely work.
if not, we need to collect experience ;)