* 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>
20 lines
360 B
Plaintext
20 lines
360 B
Plaintext
width = 5
|
|
height = 10
|
|
length = 12
|
|
|
|
fn box(sk1, sk2, scale) {
|
|
boxSketch = startSketchOn(XY)
|
|
|> startProfile(at = [sk1, sk2])
|
|
|> line(end = [0, scale])
|
|
|> line(end = [scale, 0])
|
|
|> line(end = [0, -scale])
|
|
|> close()
|
|
|> extrude(length = scale)
|
|
return boxSketch
|
|
}
|
|
|
|
box(0, 0, 5)
|
|
box(10, 23, 8)
|
|
thing = box(-12, -15, 10)
|
|
box(-20, -5, 10)
|