14 lines
339 B
Plaintext
14 lines
339 B
Plaintext
![]() |
// A 25x25x50 box
|
||
|
|
||
|
const box_width = 25
|
||
|
const box_depth = 25
|
||
|
const box_height = 50
|
||
|
|
||
|
const box_sketch = startSketchOn('XY')
|
||
|
|> startProfileAt([0, 0], %)
|
||
|
|> xLine(box_width, %, $line1)
|
||
|
|> yLine(box_depth, %, $line2)
|
||
|
|> xLineTo(profileStartX(%), %, $line3)
|
||
|
|> close(%, $line4)
|
||
|
|
||
|
const box3D = extrude(box_sketch, length = box_height)
|