Files
modeling-app/rust/kcl-lib/common.kcl
Nick Cameron 0ea0d1703e Remove deprecated syntax (#6561)
* Remove deprecated syntax

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* fix one test

* fix sketch on revolved face test

* fix test: empty-scene default-planes act as expected

* fix up more tests

* another fix

* remove another const

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch>
2025-04-30 13:12:40 +12:00

21 lines
330 B
Plaintext

// This file is used by the import docs.
export fn width() {
return 10
}
export fn height() {
return 10
}
export fn buildSketch(plane, offset) {
w = width()
h = height()
return startSketchOn(plane)
|> startProfile(at = offset)
|> line(end = [w, 0])
|> line(end = [0, h])
|> line(end = [-w, 0])
|> close()
}