BOSL2/examples/attachments.scad

20 lines
509 B
OpenSCAD
Raw Normal View History

include <BOSL2/std.scad>
2019-04-17 02:16:50 +00:00
2019-04-23 03:55:03 +00:00
$fn=32;
2019-04-26 09:15:53 +00:00
cuboid([60,40,40], rounding=5, edges=EDGES_Z_ALL, anchor=BOTTOM) {
attach(TOP, BOTTOM) rounded_prismoid([60,40],[20,20], h=50, r1=5, r2=10) {
attach(TOP) cylinder(d=20, h=30) {
attach(TOP) cylinder(d1=50, d2=30, h=12);
2019-04-17 02:16:50 +00:00
}
for (a = [FRONT, BACK, LEFT, RIGHT]) {
2019-04-17 02:16:50 +00:00
attach(a) cylinder(d1=14, d2=5, h=20) {
attach(TOP, LEFT, overlap=5) prismoid([30,20], [20,20], h=10, shift=[-7,0]);
2019-04-17 02:16:50 +00:00
}
}
}
}
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap