-
Notifications
You must be signed in to change notification settings - Fork 1
/
Barre_2mm.rb
executable file
·147 lines (119 loc) · 3.42 KB
/
Barre_2mm.rb
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
require './Jacksloon.rb'
require './PlumPott.rb'
require './Okuda.rb'
#$bitwidth = 0.125
#$halfwidth = $bitwidth/2
$bitwidth = 2.0/25.4
$halfwidth = $bitwidth/2
class Barre < PlumPott
MARJ = 0.05 #0.25
@@numero = 0
def initialize(starx, stary)
@width = 4.0
@heigh = 1.0
@depth = 0.420
@@lipp = 0.0
super
end
def getWido
return @width + MARJ
end
def numerize
unless ARGV[2].nil? then @@numero = Integer(ARGV[2]) end
end
def drillos(x,y,s,z)
pipe(x,y,0.0625,s,z)
end
def boxo()
@curxo += MARJ
midx = @width/2
endor = @curxo + @width
#screwholes from 1/8 to .07
spyrtub(@curxo+0.25,@stary,0.064,0.01)
spyrtub(endor-0.25,@stary,0.064,0.01)
#barstop
tier = -0.045
#bronxx0.1
box(endor-midx+0.433,@stary-@heighchub,
endor-0.325,@stary+@heighchub,0,tier,1)
#lensbox
tier = -0.210
#bronx
box(@curxo+0.325,@stary-@heighchub,
endor-midx+0.433,@stary+@heighchub,0,tier,2)
if @@numero < 2 then signo = -0.2
else signo = 0.2 end
@zstep = 4
#buttons
spyrtub(@curxo+0.65,@stary+signo,0.21,0.01)
spyrtub(@curxo+1.2,@stary-signo,0.21,0.01)
tier = -0.27
tier = -0.29
#slitdepth = -0.2
tubo(@curxo+midx,@stary,0.433,-0.15,tier,1)
cutoPoint(@curxo+midx,@stary)
dux(@curxo+midx,@stary-@heighchub,@curxo+midx,@stary+@heighchub,-0.15,tier+0.025,1)
#runes and lunes
edge = @stary-(signo*2.75)
if @@numero == 1 or @@numero == 2 then
rune(endor-0.9, edge, signo*1.8, 0, -0.2, 2) #tarb
rune(endor-0.9, edge, signo*1.4, 0, -0.2, 2) #tarb
lune(endor-0.9, edge, signo*1.2, -0.2, 0-@depth,2)
lune(endor-1.65, edge, signo, 0, -0.2, 1) #mike
end
tubo(endor-0.55,@stary+0.25,0.2,-0,-0.1,1)
tubo(endor-0.55,@stary+0.25,0.1,-0.1,0-@depth,3)
tubo(endor-0.55,@stary-0.25,0.2,-0,-0.1,1)
tubo(endor-0.55,@stary-0.25,0.1,-0.1,0-@depth,3)
#thicker pipes on apswitchr and adamusbthorn
if @@numero == 3 then
#drillos(endor-0.45,@stary-0.35,0,-0.1) #kyconsterprong
drillos(endor-1.5,@stary-0.1,0,-0.1) #hedrprong
end
if @@numero == 2 then
#drillos(endor-0.45,@stary+0.35,0,-0.1) #kyconsterprong
pipe(endor-0.35,@stary-0.31,0.1,0,-0.1) #adamusbthorn
#drillos(endor-0.35,@stary-0.31,0,-0.1) #adamusbthorn
end
if @@numero == 1 then
pipe(endor-0.35,@stary+0.31,0.1,0,-0.1) #adamusbthorn
#drillos(endor-0.35,@stary+0.31,0,-0.1) #adamusbthorn
pipe(endor-0.31,@stary-0.27,0.1,0,-0.1) #alpswitchthr
#drillos(endor-0.31,@stary-0.27,0,-0.1) #alpswitchthr
drillos(endor-0.25,@stary-0.48,0,-0.1) #alpswitchthr
#drillos(endor-0.75,@stary+0.15,0,-0.1) #ohmage
#drillos(endor-0.8,@stary-0.175,0,-0.1) #ohmage
#drillos(endor-0.925,@stary-0.48,0,-0.1) #ohmage
end
if @@numero == 0 then
pipe(endor-0.31,@stary+0.27,0.1,0,-0.1) #alpswitchthr
#drillos(endor-0.31,@stary+0.27,0,-0.1) #alpswitchthr
drillos(endor-0.25,@stary+0.48,0,-0.1) #alpswitchthr
#drillos(endor-0.85,@stary+0.35,0,-0.1) #ohmage
end
@@numero += 1
@@numero %= 4
@curxo += @width /2
@myOkuda = Okuda.new(@curxo,@stary,@width+MARJ*2+$bitwidth,@heigh+@@lipp*2+$bitwidth,0.01)
@curxo += @width /2
@curxo += MARJ
#@curxo += @width
#@curxo += MARJ
return @curxo
end
def ducatop
end
def ducabot
@myOkuda.bokchoy(-0.425,1.0,8,4)
end
def duxo
@curxo += $bitwidth
return @curxo
end
end
$rimmer = 0.01
unless ARGV[3].nil? then
nummerat(Barre,Integer(ARGV[3]))
else stutterat(Barre) end
#stutterat(Barre)
#stutterat(Barre)