2024-11-27 15:46:58 +13:00
|
|
|
fn cube(pos, scale) {
|
2024-11-18 16:20:32 -06:00
|
|
|
sg = startSketchOn('XY')
|
|
|
|
|> startProfileAt(pos, %)
|
|
|
|
|> line([0, scale], %)
|
|
|
|
|> line([scale, 0], %)
|
|
|
|
|> line([0, -scale], %)
|
|
|
|
|
|
|
|
return sg
|
|
|
|
}
|
|
|
|
part001 = cube([0, 0], 20)
|
|
|
|
|> close(%)
|
|
|
|
|> extrude(20, %)
|
|
|
|
|
|
|
|
part002 = startSketchOn(part001, "END")
|
|
|
|
|> startProfileAt([0, 0], %)
|
|
|
|
|> line([0, 10], %)
|
|
|
|
|> line([10, 0], %)
|
|
|
|
|> line([0, -10], %)
|
|
|
|
|> close(%)
|
|
|
|
|> extrude(5, %)
|