2009-07-15 01:47:32 +04:00
|
|
|
|
|
|
|
module example002()
|
|
|
|
{
|
|
|
|
intersection() {
|
|
|
|
difference() {
|
|
|
|
union() {
|
2009-10-19 22:27:47 +04:00
|
|
|
cube([30, 30, 30], center = true);
|
|
|
|
translate([0, 0, -25])
|
|
|
|
cube([15, 15, 50], center = true);
|
2009-07-15 01:47:32 +04:00
|
|
|
}
|
|
|
|
union() {
|
2009-10-19 22:27:47 +04:00
|
|
|
cube([50, 10, 10], center = true);
|
|
|
|
cube([10, 50, 10], center = true);
|
|
|
|
cube([10, 10, 50], center = true);
|
2009-07-15 01:47:32 +04:00
|
|
|
}
|
|
|
|
}
|
2009-10-19 22:27:47 +04:00
|
|
|
translate([0, 0, 5])
|
2009-07-15 01:47:32 +04:00
|
|
|
cylinder(h = 50, r1 = 20, r2 = 5, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
example002();
|
|
|
|
|