File: drop_cutter_tst_2.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 (14 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from opencamlib import ocl

if __name__ == "__main__":  
    cutter = ocl.CylCutter(.1, 5)
    print(cutter)
    a=ocl.Point(1,0,0)
    b=ocl.Point(0,1,0)
    c=ocl.Point(0,0,1)
    t = ocl.Triangle(a,b,c)
    print("triangle created  t=", t)
    cl = ocl.CLPoint(0.2,0.2,0)

    cutter.dropCutter(cl,t)
    print("CL= ", cl)