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>
This commit is contained in:
Nick Cameron
2025-04-30 13:12:40 +12:00
committed by GitHub
parent 29b8a442c2
commit 0ea0d1703e
127 changed files with 2092 additions and 2359 deletions

View File

@ -1,14 +1,14 @@
// A 25x25x50 box
const box_width = 25
const box_depth = 25
const box_height = 50
box_width = 25
box_depth = 25
box_height = 50
const box_sketch = startSketchOn('XY')
box_sketch = startSketchOn(XY)
|> startProfile(at = [0, 0])
|> xLine(length = box_width, tag = $line1)
|> yLine(length = box_depth, tag = $line2)
|> xLine(endAbsolute = profileStartX(%), tag = $line3)
|> close(%, $line4)
const box3D = extrude(box_sketch, length = box_height)
box3D = extrude(box_sketch, length = box_height)