Files
modeling-app/rust/kcl-lib/tests/sketch_on_face_end/input.kcl
Nick Cameron bae875382c Replace plane strings with literals (#6592)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-04-30 05:13:11 +00:00

21 lines
444 B
Plaintext

fn cube(pos, scale) {
sg = startSketchOn(XY)
|> startProfile(at = pos)
|> line(end = [0, scale])
|> line(end = [scale, 0])
|> line(end = [0, -scale])
return sg
}
part001 = cube([0, 0], 20)
|> close(%)
|> extrude(length = 20)
part002 = startSketchOn(part001, face = "END")
|> startProfile(at = [0, 0])
|> line(end = [0, 10])
|> line(end = [10, 0])
|> line(end = [0, -10])
|> close(%)
|> extrude(length = 5)