crystalscad 0.5.5 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/crystalscad/CrystalScad.rb +4 -2
- data/lib/crystalscad/version.rb +1 -1
- metadata +3 -3
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
require "rubygems"
|
|
17
17
|
require "rubyscad"
|
|
18
|
+
$fn = 64
|
|
18
19
|
|
|
19
20
|
module CrystalScad
|
|
20
21
|
include CrystalScad::BillOfMaterial
|
|
@@ -525,7 +526,8 @@ module CrystalScad
|
|
|
525
526
|
# - show
|
|
526
527
|
# - output
|
|
527
528
|
# - view*
|
|
528
|
-
def save_all(class_name)
|
|
529
|
+
def save_all(class_name,fn=$fn)
|
|
530
|
+
|
|
529
531
|
res = class_name.send :new
|
|
530
532
|
(res.methods.grep(/view/)+[:show,:output]).each do |i|
|
|
531
533
|
res.send :initialize # ensure default values are loaded at each interation
|
|
@@ -536,7 +538,7 @@ module CrystalScad
|
|
|
536
538
|
output = res.output
|
|
537
539
|
end
|
|
538
540
|
|
|
539
|
-
output.save("output/#{res.class}_#{i}.scad","fn
|
|
541
|
+
output.save("output/#{res.class}_#{i}.scad","$fn=#{fn};")
|
|
540
542
|
end
|
|
541
543
|
|
|
542
544
|
end
|
data/lib/crystalscad/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crystalscad
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 7
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.5.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Joachim Glauche
|