File: ocl_interval.py

package info (click to toggle)
opencamlib 2023.01.11-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,800 kB
  • sloc: cpp: 8,722; python: 5,530; sh: 604; javascript: 310; makefile: 209
file content (18 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from opencamlib import ocl
        
if __name__ == "__main__":  
    print(ocl.version())
    i = ocl.Interval()
    print(i)
    i = ocl.Interval(0.123, 0.456)
    print(i)
    cc = ocl.CCPoint(1,2,3)
    cc.type = ocl.CCType.VERTEX
    i.updateLower(-0.222,cc)
    print(i)
    i.updateLower(0,cc)
    print(i)
    i.updateUpper(0,cc)
    print(i)
    i.updateUpper(2,cc)
    print(i)