.. petrify documentation master file, created by sphinx-quickstart on Sun Feb 10 20:10:31 2019. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. petrify: a programmatic cad library =================================== petrify can be used to create open-source programmatic and parametric three-dimensional models. Example usage: .. testcode:: 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')) Contents ======== .. toctree:: :maxdepth: 2 petrify.units petrify.solid petrify.formats petrify.shape petrify.edge petrify.space petrify.plane Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`