ZenCad.
Scripted CAD for righteous programmers.
What is it?
ZenCad is a library for parametric 3D modeling. It follows the idea of creating a 3D model by writing a script, with roots in OpenSCAD. Unlike OpenSCAD, it uses the OpenCascade boundary-representation geometry kernel and the general-purpose Python language.
ZenCad can be used on its own for rapid prototyping, mockups and 3D printing, or together with the Python ecosystem—for example, to build models from calculations made in SciPy and SymPy.
Development and installation instructions are on the Installation page.
Quick start
Installation
python3 -m pip install "zencad[gui]"
Starting the graphical interface
zencad
# alternate:
python3 -m zencad
HelloWorld
#!/usr/bin/env python3
#coding: utf-8
from zencad import *
box = box(200, 200, 200, center = True)
sphere1 = sphere(120)
sphere2 = sphere(60)
model = box - sphere1 + sphere2
display(model)
show()
Links
github: https://github.com/mirmik/zencad
pypi: https://pypi.org/project/zencad