rubyscad 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/RubyScad.rb +12 -0
- data/lib/rubyscad/version.rb +1 -1
- metadata +2 -2
data/lib/RubyScad.rb
CHANGED
@@ -179,6 +179,18 @@ module RubyScad
|
|
179
179
|
end
|
180
180
|
|
181
181
|
def cylinder(args={})
|
182
|
+
if args.include?(:d)
|
183
|
+
args[:r] = args[:d]/2.0
|
184
|
+
args.delete(:d)
|
185
|
+
end
|
186
|
+
if args.include?(:d1)
|
187
|
+
args[:r1] = args[:d1]/2.0
|
188
|
+
args.delete(:d1)
|
189
|
+
end
|
190
|
+
if args.include?(:d2)
|
191
|
+
args[:r2] = args[:d2]/2.0
|
192
|
+
args.delete(:d2)
|
193
|
+
end
|
182
194
|
format_command CYLINDER_STR, args
|
183
195
|
end
|
184
196
|
|
data/lib/rubyscad/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyscad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-16 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Ruby module to easily generate openscad scripts
|
15
15
|
email:
|