Files
modeling-app/rust/kcl-lib/tests/sketch_on_face_start/unparsed.snap

25 lines
567 B
Plaintext
Raw Permalink Normal View History

---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing sketch_on_face_start.kcl
---
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(pos = [0, 0], scale = 20)
|> close(%)
|> extrude(length = 20) as foo
part002 = startSketchOn(foo, face = START)
|> startProfile(at = [0, 0])
|> line(end = [0, 10])
|> line(end = [10, 0])
|> line(end = [0, -10])
|> close(%)
|> extrude(length = 5)