| module Xflat() {
|
| rotate([0, 90, 0]) linear_extrude(height = 0.01) projection() rotate([0, -90, 0]) children();
|
| }
|
|
|
| module Yflat() {
|
| rotate([90, 0, 0]) linear_extrude(height = 0.01) projection() rotate([-90, 90, 0]) children();
|
| }
|
|
|
| module Zflat() {
|
| linear_extrude(height = 0.01) projection() children();
|
| }
|
|
|
| module aabb() {
|
| minkowski() {
|
| Xflat() Yflat() children();
|
| Yflat() Zflat() children();
|
| Zflat() Xflat() children();
|
| }
|
| }
|
|
|
|
|
|
|
| module my_obj() {
|
| sphere(10);
|
| translate([2, 3, 5]) cube([2, 3, 14]);
|
| }
|
|
|
|
|
| my_obj();
|
|
|
| color("red", alpha=0.2) aabb() my_obj();
|