21 lines
414 B
Plaintext
21 lines
414 B
Plaintext
fn cube(pos, scale) {
|
|
sg = startSketchOn('XY')
|
|
|> startProfileAt(pos, %)
|
|
|> line([0, scale], %)
|
|
|> line([scale, 0], %)
|
|
|> line([0, -scale], %)
|
|
|
|
return sg
|
|
}
|
|
part001 = cube([0, 0], 20)
|
|
|> close(%)
|
|
|> extrude(20, %) as foo
|
|
|
|
part002 = startSketchOn(foo, "start")
|
|
|> startProfileAt([0, 0], %)
|
|
|> line([0, 10], %)
|
|
|> line([10, 0], %)
|
|
|> line([0, -10], %)
|
|
|> close(%)
|
|
|> extrude(5, %)
|