-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhorse.py
More file actions
22 lines (19 loc) · 960 Bytes
/
horse.py
File metadata and controls
22 lines (19 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf-8 -*-
from py2gcode import *
safeZ=5 #áåçîïàñíàÿ âûñîòà
def up():
G0(Z=safeZ)
def f():
G0(0, 0, safeZ)
str = "m 183.57143,460.93361 c 15,-46.66667 58.78935,-101.91963 45,-140 17.7804,-1.98441 30.76257,4.1124 42.73459,10.71429 5.15143,-8.02798 10.05033,-11.25774 16.717,-17.01288 16.26312,9.70414 18.63663,20.67096 21.26269,31.89033 46.54497,-1.37208 68.59373,36.65179 83.57143,65.83683 16.86929,35.59131 18.08122,80.27399 15,125.71429 l -159.28571,-0.71429 c 0.43987,-15.29587 2.84902,-29.4523 16.97697,-44.11983 14.12795,-14.66753 28.70184,-41.27756 25.88017,-45.88017 -15.15144,2.55342 -33.33333,22.7845 -50,48.57143 -11.71743,0.70728 -17.12141,-0.35321 -20,-10 -19.69011,4.29357 -30.79393,-5.80753 -37.85714,-25 z"
s = SvgTrajectory(str)
s.to_zero()
c = Strategy()
for x in xrange(0, 200, 30):
for y in xrange(0, 100, 30):
z = -1
while z >= -10:
c.grav(s, Tool(), x, y, z, scale=0.1)
z -= 1
up()
preview(f)