Jupyter SCAD
Jupyter SCAD provides rendering and interactive visualization for 3D objects described in SolidPython2 within a Jupyter notebook. Additionally, it provides interactive visualization for STLs.
This program is focused on the use case of generating stl files with Python (aka SolidPython2) interactively within a Jupyter notebook.
SolidPython2 generates OpenSCAD language code from Python code. Jupyter SCAD then uses OpenSCAD to render the OpenSCAD code to a 3D model and provides interactive visualization. As an alternative to SolidPython2, the OpenSCAD code can also be provided directly.
Quick Start
Jupyter SCAD can be installed with pip
:
An OpenSCAD object can be defined using SolidPython2, viewed in a Jupyter
notebook, and saved to an stl
file with:
from jupyterscad import view
from solid2 import cube
view(cube([1.5,2,1],center=True), outfile='cube.stl')
See the Usage page for more examples.
Status: MATURE
This project has reached it's goal, a basic Jupyter notebook viewer for SolidPython2, and no further improvements are planned.
License
Jupyter SCAD is licensed under the GNU GENERAL PUBLIC LICENSE.