.. 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.
11 lines
323 B
Text
11 lines
323 B
Text
e1 = Edge().createHelix(.5, 4, 1, 0)
|
|
e2 = Edge().createCircle(center=(1.,0.,0.),normal=(0.,-1.,0.),radius = 0.2)
|
|
f1 = Face().createFace(e2)
|
|
|
|
e1b = Edge().createHelix(.5, 4, 1, 15, True)
|
|
with Translated((10,0,0)):
|
|
Pipe(f1, Wire.createWire(e1b))
|
|
|
|
with Difference():
|
|
Cylinder((0,0,-.5), (0,0,3.5), 1)
|
|
Pipe(f1, e1)
|