poc/examples/extrude.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

8 lines
279 B
Text

e1 = Edge().createLine((-.5,0.,0.),(.5,0.,0.))
e2 = Edge().createArc3P((.5,0.,0.),(-.5,0.,0.),(0.,.5,0.))
w1 = Wire().createWire((e1,e2))
x = Edge().createCircle((0,.25,0), (0,0,1), (.1))
f1 = Face().createFace((w1, x))
#do_op(f1)
Extrude(f1, (0.,0.,0.), (0.,0.,1.))
Fillet(.05)