| 1 |
from opencamlib import ocl |
| 2 |
import math |
| 3 |
|
| 4 |
print(ocl.version()) |
| 5 |
|
| 6 |
# cylinder |
| 7 |
c = ocl.CylCutter(2.345, 5) |
| 8 |
d = c.offsetCutter(0.1) |
| 9 |
print(c) |
| 10 |
print("offset: ",d) |
| 11 |
print |
| 12 |
|
| 13 |
# ball |
| 14 |
c = ocl.BallCutter(2.345, 6) |
| 15 |
d = c.offsetCutter(0.1) |
| 16 |
print(c) |
| 17 |
print("offset: ",d) |
| 18 |
print |
| 19 |
|
| 20 |
# bull |
| 21 |
c = ocl.BullCutter(2.345, 0.123, 6) |
| 22 |
d = c.offsetCutter(0.1) |
| 23 |
print(c) |
| 24 |
print("offset: ",d) |
| 25 |
print |
| 26 |
|
| 27 |
# cone |
| 28 |
c = ocl.ConeCutter(2.345, math.pi/6, 5) |
| 29 |
d = c.offsetCutter(0.1) |
| 30 |
print(c) |
| 31 |
print("offset: ",d) |
| 32 |
|
| 33 |
# TODO: add compound-cutters here below. |