Previous: ``` startProfileAt([x, y], %) startProfileAt([x, y], sketch001) ``` New: ``` startProfile(%, at = [x, y]) startProfile(sketch001, at = [x, y]) ```
20 lines
511 B
Plaintext
20 lines
511 B
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of unparsing sketch_on_face.kcl
|
|
---
|
|
part001 = startSketchOn(XY)
|
|
|> startProfile(at = [11.19, 28.35])
|
|
|> line(end = [28.67, -13.25], tag = $here)
|
|
|> line(end = [-4.12, -22.81])
|
|
|> line(end = [-33.24, 14.55])
|
|
|> close(%)
|
|
|> extrude(length = 5)
|
|
|
|
part002 = startSketchOn(part001, face = here)
|
|
|> startProfile(at = [0, 0])
|
|
|> line(end = [0, 10])
|
|
|> line(end = [10, 0])
|
|
|> line(end = [0, -10])
|
|
|> close(%)
|
|
|> extrude(length = 5)
|