Debian Codegraph @

examples/python/ocl_interval.py

raw
1 from opencamlib import ocl
2
3 if __name__ == "__main__":
4 print(ocl.version())
5 i = ocl.Interval()
6 print(i)
7 i = ocl.Interval(0.123, 0.456)
8 print(i)
9 cc = ocl.CCPoint(1,2,3)
10 cc.type = ocl.CCType.VERTEX
11 i.updateLower(-0.222,cc)
12 print(i)
13 i.updateLower(0,cc)
14 print(i)
15 i.updateUpper(0,cc)
16 print(i)
17 i.updateUpper(2,cc)
18 print(i)