summaryrefslogtreecommitdiff
path: root/testdata/scad/features/highlight-and-background-modifier.scad
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2013-05-27 05:08:31 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2013-05-27 05:08:31 (GMT)
commit37dc9342a14206f5862447eb9d3d5049ec67f638 (patch)
tree17e5a57dfa154821918094cab47476189771ce00 /testdata/scad/features/highlight-and-background-modifier.scad
parent6742ad55f4cf335fc767ab65784aab81e06b61d0 (diff)
parent0967a26bff45951d7b86fe628e8b1156e6e40ede (diff)
Merge branch 'master' of github.com:openscad/openscad into issue125
Diffstat (limited to 'testdata/scad/features/highlight-and-background-modifier.scad')
-rw-r--r--testdata/scad/features/highlight-and-background-modifier.scad31
1 files changed, 26 insertions, 5 deletions
diff --git a/testdata/scad/features/highlight-and-background-modifier.scad b/testdata/scad/features/highlight-and-background-modifier.scad
index 5dca703..d97408b 100644
--- a/testdata/scad/features/highlight-and-background-modifier.scad
+++ b/testdata/scad/features/highlight-and-background-modifier.scad
@@ -1,10 +1,31 @@
difference() {
sphere(r=10);
%#cylinder(h=30, r=6, center=true);
- %#if (true) cube([6,25,3], center=true);
+ %#if (true) cube([25,6,3], center=true);
}
-translate([13,0,0]) difference() {
- sphere(r=10);
- #%cylinder(h=30, r=6, center=true);
- #%if (true) cube([6,25,3], center=true);
+%#translate([0,-9,0]) difference() {
+ color("green") cube([10,4,10], center=true);
+ color("red") translate([0,-2,0]) sphere(3);
+}
+%translate([13,0,0]){
+ difference() {
+ sphere(r=10);
+ cylinder(h=30, r=6, center=true);
+ if (true) cube([25,6,3], center=true);
+ }
+ #translate([0,-9,0]) difference() {
+ color("green") cube([10,4,10], center=true);
+ color("red") translate([0,-2,0]) sphere(3);
+ }
+}
+#translate([26,0,0]){
+ difference() {
+ sphere(r=10);
+ cylinder(h=30, r=6, center=true);
+ if (true) cube([25,6,3], center=true);
+ }
+ %translate([0,-9,0]) difference() {
+ color("green") cube([10,4,10], center=true);
+ color("red") translate([0,-2,0]) sphere(3);
+ }
}
contact: Jan Huwald // Impressum