2014-05-03 23:59:47 +04:00
|
|
|
echo(version=version());
|
2014-05-03 22:24:07 +04:00
|
|
|
|
2014-04-05 21:55:36 +04:00
|
|
|
module example_intersection()
|
2014-05-03 22:24:07 +04:00
|
|
|
{
|
|
|
|
intersection() {
|
|
|
|
difference() {
|
|
|
|
union() {
|
|
|
|
cube([30, 30, 30], center = true);
|
|
|
|
translate([0, 0, -25])
|
|
|
|
cube([15, 15, 50], center = true);
|
|
|
|
}
|
|
|
|
union() {
|
|
|
|
cube([50, 10, 10], center = true);
|
|
|
|
cube([10, 50, 10], center = true);
|
|
|
|
cube([10, 10, 50], center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
translate([0, 0, 5])
|
|
|
|
cylinder(h = 50, r1 = 20, r2 = 5, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-04-05 21:55:36 +04:00
|
|
|
example_intersection();
|
2014-05-03 22:24:07 +04:00
|
|
|
|