rubyscad 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +21 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/Rakefile +1 -0
- data/examples/BasicCube.rb +50 -0
- data/examples/ChamferCube.rb +96 -0
- data/examples/FilletCube.rb +317 -0
- data/examples/example001.rb +33 -0
- data/examples/example001.scad +11 -0
- data/examples/example002.rb +23 -0
- data/examples/example002.scad +18 -0
- data/examples/example003.rb +19 -0
- data/examples/example003.scad +15 -0
- data/examples/example004.rb +11 -0
- data/examples/example004.scad +6 -0
- data/examples/example005.rb +22 -0
- data/examples/example005.scad +31 -0
- data/examples/example006.rb +46 -0
- data/examples/example006.scad +221 -0
- data/examples/example007.dxf +2410 -0
- data/examples/example007.rb +53 -0
- data/examples/example007.scad +30 -0
- data/examples/example008.dxf +3238 -0
- data/examples/example008.rb +34 -0
- data/examples/example008.scad +26 -0
- data/examples/example009.dxf +3894 -0
- data/examples/example009.rb +33 -0
- data/examples/example009.scad +15 -0
- data/examples/example010.dat +51 -0
- data/examples/example010.rb +12 -0
- data/examples/example010.scad +7 -0
- data/examples/example011.rb +22 -0
- data/examples/example011.scad +3 -0
- data/examples/example012.rb +16 -0
- data/examples/example012.scad +8 -0
- data/examples/example012.stl +450 -0
- data/examples/example013.dxf +2276 -0
- data/examples/example013.rb +16 -0
- data/examples/example013.scad +12 -0
- data/examples/example014.rb +14 -0
- data/examples/example014.scad +12 -0
- data/examples/example015.rb +33 -0
- data/examples/example015.scad +22 -0
- data/examples/example016.rb +43 -0
- data/examples/example016.scad +49 -0
- data/examples/example016.stl +0 -0
- data/examples/example017.rb +170 -0
- data/examples/example017.scad +124 -0
- data/examples/example018.rb +29 -0
- data/examples/example018.scad +74 -0
- data/examples/example019.rb +22 -0
- data/examples/example019.scad +84 -0
- data/examples/example020.rb +92 -0
- data/examples/example020.scad +62 -0
- data/examples/example021.rb +42 -0
- data/examples/example021.scad +159 -0
- data/examples/example022.rb +44 -0
- data/examples/example022.scad +103 -0
- data/lib/{RubyScad.rb → rubyscad/RubyScad.rb} +0 -0
- data/lib/rubyscad/version.rb +1 -1
- data/lib/rubyscad.rb +1 -1
- data/rubyscad.gemspec +20 -0
- metadata +66 -7
@@ -0,0 +1,34 @@
|
|
1
|
+
require "rubyscad"
|
2
|
+
|
3
|
+
module Example008
|
4
|
+
extend RubyScad
|
5
|
+
|
6
|
+
difference() {
|
7
|
+
intersection() {
|
8
|
+
translate(v: [ -25, -25, -25])
|
9
|
+
linear_extrude(height: 50, convexity: 3)
|
10
|
+
import(file: "example008.dxf", layer: "G");
|
11
|
+
|
12
|
+
rotate(a:90, v:[1, 0, 0])
|
13
|
+
translate(v: [ -25, -125, -25])
|
14
|
+
linear_extrude(height: 50, convexity: 3)
|
15
|
+
import(file: "example008.dxf", layer: "E");
|
16
|
+
|
17
|
+
rotate(a: 90, v: [0, 1, 0])
|
18
|
+
translate(v: [ -125, -125, -25])
|
19
|
+
linear_extrude(height: 50, convexity: 3)
|
20
|
+
import(file: "example008.dxf", layer: "B");
|
21
|
+
}
|
22
|
+
|
23
|
+
intersection() {
|
24
|
+
translate(v: [ -125, -25, -26])
|
25
|
+
linear_extrude(height: 52, convexity: 1)
|
26
|
+
import(file: "example008.dxf", layer: "X");
|
27
|
+
|
28
|
+
rotate(a: 90, v:[0, 1, 0])
|
29
|
+
translate(v: [ -125, -25, -26])
|
30
|
+
linear_extrude(height: 52, convexity: 1)
|
31
|
+
import(file: "example008.dxf", layer: "X");
|
32
|
+
}
|
33
|
+
}
|
34
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
//created with rubyscad 1.0
|
2
|
+
|
3
|
+
difference() {
|
4
|
+
intersection() {
|
5
|
+
translate(v = [-25, -25, -25])
|
6
|
+
linear_extrude(height = 50, convexity = 3)
|
7
|
+
import(file = "example008.dxf", layer = "G");
|
8
|
+
rotate(a = 90, v = [1, 0, 0])
|
9
|
+
translate(v = [-25, -125, -25])
|
10
|
+
linear_extrude(height = 50, convexity = 3)
|
11
|
+
import(file = "example008.dxf", layer = "E");
|
12
|
+
rotate(a = 90, v = [0, 1, 0])
|
13
|
+
translate(v = [-125, -125, -25])
|
14
|
+
linear_extrude(height = 50, convexity = 3)
|
15
|
+
import(file = "example008.dxf", layer = "B");
|
16
|
+
}
|
17
|
+
intersection() {
|
18
|
+
translate(v = [-125, -25, -26])
|
19
|
+
linear_extrude(height = 52, convexity = 1)
|
20
|
+
import(file = "example008.dxf", layer = "X");
|
21
|
+
rotate(a = 90, v = [0, 1, 0])
|
22
|
+
translate(v = [-125, -25, -26])
|
23
|
+
linear_extrude(height = 52, convexity = 1)
|
24
|
+
import(file = "example008.dxf", layer = "X");
|
25
|
+
}
|
26
|
+
}
|