Debian Codegraph @

examples/python/lineclfilter_test.py

raw
1 from opencamlib import ocl
2
3 print(ocl.version())
4
5 p0 = ocl.CLPoint(0,0,0)
6 p1 = ocl.CLPoint(1,2,3)
7 p2 = ocl.CLPoint(1.1,2.2,3.3)
8 clp=[]
9 clp.append(p0)
10 clp.append(p1)
11 clp.append(p2)
12
13 f = ocl.LineCLFilter()
14 f.setTolerance(0.01)
15 for p in clp:
16 f.addCLPoint(p)
17
18 f.run()
19 p2 = f.getCLPoints()
20 for p in p2:
21 print(p)