petrify: a programmatic cad library¶
petrify can be used to create open-source programmatic and parametric three-dimensional models.
Example usage:
from petrify import u
from petrify.formats import STL
from petrify.solid import Point, Vector, Box
big = Box(Point(0, 0, 0), Vector(1, 1, 1))
small = Box(Point(0.5, 0.5, 0.5), Vector(0.5, 0.5, 0.5))
STL('example.stl', 'mm').write((big - small).as_unit('in'))