Files
modeling-app/src/wasm-lib/kcl/tests/sketch_in_object/input.kcl

30 lines
456 B
Plaintext
Raw Normal View History

fn test = () => {
return startSketchOn('XY')
|> startProfileAt([0, 0], %)
|> line([0, 1], %)
|> line([1, 0], %)
|> line([0, -1], %)
|> close(%)
}
fn test2 = () => {
return {
thing1: {
thing2: startSketchOn('XY')
|> startProfileAt([0, 0], %)
|> line([0, 1], %)
|> line([1, 0], %)
|> line([0, -1], %)
|> close(%)
}
}
}
x = test()
x
|> extrude(-10, %)
x2 = test2()
x2.thing1.thing2
|> extrude(10, %)