13 lines
332 B
OpenSCAD
13 lines
332 B
OpenSCAD
|
|
PrismSize = 15;
|
|
|
|
module prism (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
translate(pos) rotate(rot) {
|
|
rotate([0, 0, -45]) difference () {
|
|
rotate([0, 0, 45]) cube([PrismSize, PrismSize, PrismSize], center = true);
|
|
translate([PrismSize, 0, 0]) cube([PrismSize * 2, PrismSize * 2, PrismSize + 1], center = true);
|
|
}
|
|
}
|
|
}
|
|
|
|
prism(); |