summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-17 07:41:06 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-17 07:41:06 (GMT)
commite317997714650cd44daf389203e385b74e4c5ed4 (patch)
treed10af2f5dc9f23670573b9bba87db87039df9f76 /examples
parent6de5c3dc35d7ea78738cde12fa99eace2a9209bc (diff)
Clifford Wolf:
Some tiny improvements in dxf example (example007) git-svn-id: http://svn.clifford.at/openscad/trunk@59 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'examples')
-rw-r--r--examples/example007.scad49
1 files changed, 41 insertions, 8 deletions
diff --git a/examples/example007.scad b/examples/example007.scad
index e6cd219..efab3bd 100644
--- a/examples/example007.scad
+++ b/examples/example007.scad
@@ -22,12 +22,45 @@ module cutout()
}
}
-difference() {
- dxf_rotate_extrude(
- file = "example007.dxf",
- layer="dorn",
- convexity = 3);
- for (r = [0 90])
- rotate(r, [0 0 1])
- cutout();
+module clip()
+{
+ difference() {
+ dxf_rotate_extrude(
+ file = "example007.dxf",
+ layer="dorn",
+ convexity = 3);
+ for (r = [0 90])
+ rotate(r, [0 0 1])
+ cutout();
+ }
}
+
+module cutview()
+{
+ difference()
+ {
+ difference()
+ {
+ translate([0 0 -10])
+ clip();
+
+ rotate(20, [0 0 1])
+ rotate(-20, [0 1 0])
+ translate([18 0 0])
+ cube(30, center = true);
+ }
+
+ # render(convexity = 5) intersection()
+ {
+ translate([0 0 -10])
+ clip();
+
+ rotate(20, [0 0 1])
+ rotate(-20, [0 1 0])
+ translate([18 0 0])
+ cube(30, center = true);
+ }
+ }
+}
+
+cutview();
contact: Jan Huwald // Impressum