Move axes to std constants; move helix, revolve, and mirror2d to be declared in KCL (#6105)

Move axes to std constants; move helix, revolve, and mirror2d to be declated in KCL

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-04-03 22:44:52 +13:00
committed by GitHub
parent 3e4505e2e3
commit aad583be2e
167 changed files with 11811 additions and 38646 deletions

View File

@ -1,6 +1,6 @@
@settings(defaultLengthUnit = mm)
export part001 = startSketchOn('XY')
export part001 = startSketchOn(XY)
|> startProfileAt([4, 12], %)
|> line(end = [2, 0])
|> line(end = [0, -6])
@ -10,7 +10,7 @@ export part001 = startSketchOn('XY')
|> line(end = [0, -5.5])
|> line(end = [-2, 0])
|> close()
|> revolve(axis = 'y') // default angle is 360
|> revolve(axis = Y) // default angle is 360
export fn two() {
return 5

View File

@ -14,7 +14,7 @@ export part001 = startSketchOn(XY)
|> line(end = [0, -5.5])
|> line(end = [-2, 0])
|> close()
|> revolve(axis = 'y') // default angle is 360
|> revolve(axis = Y) // default angle is 360
export fn two() {
return 5