New paste Repaste Download
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();
Filename: None. Size: 631b. View raw, , hex, or download this file.

This paste expires on 2025-02-27 19:57:39.373072. Pasted through web.