6 lines
206 B
OpenSCAD
6 lines
206 B
OpenSCAD
module prism(l, w, h) {
|
|
polyhedron(
|
|
points = [[0, 0, 0], [l, 0, 0], [l, w, 0], [0, w, 0], [0, w, h], [l, w, h]],
|
|
faces = [[0, 1, 2, 3], [5, 4, 3, 2], [0, 4, 5, 1], [0, 3, 4], [5, 2, 1]]
|
|
);
|
|
} |