poc/examples/primitives.poc
Jeff Epler db5b15bfc4 Major rewrite: switch from occmodel to pythonocc-core + vtk
.. this requires reverting to python2 due to lack of python3
vtk packages in debian stretch.

pythonocc-core is much more verbose, but it exposes the whole
oce API to Python, which means that I'm not stuck when I want
to expose something not in occmodel.  I hope that it's a better
way forward.
2017-08-11 21:35:32 -05:00

18 lines
429 B
Text

#!/usr/bin/env poc
with Translated((0,0,0)):
Sphere((0,0,0), 12)
with Translated((-20,0,0)):
Box((-5,-5,-5), (5,5,5))
with Translated((20,0,0)), Filleted(1):
Cylinder((0,0,-5), (0,0,5), 5)
with Translated((0,20,0)), Chamfered(2, lambda e: Bbox(e)[2] < 0):
Cone((0,0,-5), (0,0,5), 5, 2)
with Translated((0,-20,0)):
Torus((0,0,0), (0,0,1), 5, 2)
with Translated((-10,-10,-20)):
Text(8, 2, "hello_poc")