14 lines
235 B
Plaintext
14 lines
235 B
Plaintext
fn box = (h, l, w) => {
|
|
myBox = startSketchOn('XY')
|
|
|> startProfileAt([0, 0], %)
|
|
|> line([0, l], %)
|
|
|> line([w, 0], %)
|
|
|> line([0, -l], %)
|
|
|> close(%)
|
|
|> extrude(h, %)
|
|
|
|
return myBox
|
|
}
|
|
|
|
fnBox = box(3, 6, 10)
|