summaryrefslogtreecommitdiff
path: root/testdata/scad/features/highlight-and-background-modifier.scad
blob: d97408b34d5c92fdd317451fd8d706eff7c61313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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([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