Files
modeling-app/src/wasm-lib/kcl/tests/sketch_on_face_start/input.kcl
Nick Cameron 87f50cd5e9 Implement as aliases for sub-expressions (#4723)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2024-12-11 21:26:42 +13:00

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, %)