18 lines
365 B
Plaintext
18 lines
365 B
Plaintext
![]() |
---
|
||
|
source: kcl-lib/src/simulation_tests.rs
|
||
|
description: Result of unparsing function_sketch_with_position.kcl
|
||
|
---
|
||
|
fn box(p, h, l, w) {
|
||
|
myBox = startSketchOn('XY')
|
||
|
|> startProfileAt(p, %)
|
||
|
|> line(end = [0, l])
|
||
|
|> line(end = [w, 0])
|
||
|
|> line(end = [0, -l])
|
||
|
|> close(%)
|
||
|
|> extrude(length = h)
|
||
|
|
||
|
return myBox
|
||
|
}
|
||
|
|
||
|
thing = box([0, 0], 3, 6, 10)
|