openscad/testdata/scad/features/highlight-and-background-mo...

32 lines
812 B
OpenSCAD

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);
}
}