-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta_test.py
More file actions
49 lines (39 loc) · 827 Bytes
/
meta_test.py
File metadata and controls
49 lines (39 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- coding: utf-8 -*-
from py2gcode import *
v = Meta()
v.point(20, 20, rounding=3)
v.point(30, 20, rounding=3)
v.point(30, 10, rounding=3)
v.point(45, 20, radius=-3)
v.point(60, 10, radius=5)
v.point(65, 40)
v.point(20, 40, rounding=3)
#v.jump_point(5, [15, 50, 70])
#preview2D(v, 8)
v2 = Meta()
v2.point(30, 32, radius=3)
v2.point(50, 32, radius=5)
v2.jump_point(5, [15, 65])
preview2D([v], 8, options={'hideRef': False})
def f():
G0(0, 0, 5)
G0(Z = 5)
F(1000)
x, y = v2.get_first_position()
G0(x, y)
z = -3
v2.mirror_y()
while z > -10:
G1(Z=z)
v2.to_gcode(z, -8)
z -= 2
G0(Z=5)
x, y = v.get_first_position()
G0(x, y)
z = -3
while z > -10:
G1(Z=z)
v.to_gcode(z, -8)
z -= 2
preview(f)
#export(f)