BREAKING: More units of measure work and keyword args (#6291)

* More units of measure work

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

* Update CSG output since engine change

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Jonathan Tran
2025-04-14 05:58:19 -04:00
committed by GitHub
parent 7d7b153085
commit 160f55ede5
447 changed files with 60364 additions and 34465 deletions

View File

@ -439,7 +439,7 @@ describe('testing sketchOnExtrudedFace', () => {
|> line(end = [8.62, -9.57])
|> close()
|> extrude(length = 5 + 7)
sketch001 = startSketchOn(part001, seg01)`)
sketch001 = startSketchOn(part001, face = seg01)`)
})
test('it should be able to extrude on close segments', async () => {
const code = `part001 = startSketchOn(-XZ)
@ -477,7 +477,7 @@ sketch001 = startSketchOn(part001, seg01)`)
|> line(end = [8.62, -9.57])
|> close(tag = $seg01)
|> extrude(length = 5 + 7)
sketch001 = startSketchOn(part001, seg01)`)
sketch001 = startSketchOn(part001, face = seg01)`)
})
test('it should be able to extrude on start-end caps', async () => {
const code = `part001 = startSketchOn(-XZ)
@ -516,7 +516,7 @@ sketch001 = startSketchOn(part001, seg01)`)
|> line(end = [8.62, -9.57])
|> close()
|> extrude(length = 5 + 7)
sketch001 = startSketchOn(part001, END)`)
sketch001 = startSketchOn(part001, face = END)`)
})
test('it should ensure that the new sketch is inserted after the extrude', async () => {
const code = `sketch001 = startSketchOn(-XZ)
@ -555,7 +555,7 @@ sketch001 = startSketchOn(part001, END)`)
if (err(updatedAst)) throw updatedAst
const newCode = recast(updatedAst.modifiedAst)
expect(newCode).toContain(`part001 = extrude(sketch001, length = 5 + 7)
sketch002 = startSketchOn(part001, seg01)`)
sketch002 = startSketchOn(part001, face = seg01)`)
})
})
@ -918,7 +918,7 @@ sketch003 = startSketchOn(XZ)
// |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
// |> close()
// const extrude001 = extrude(sketch001, length = 5)
// sketch002 = startSketchOn(extrude001, seg01)
// sketch002 = startSketchOn(extrude001, face = seg01)
// |> startProfileAt([-12.55, 2.89], %)
// |> line(end = [3.02, 1.9])
// |> line(end = [1.82, -1.49], tag = $seg02)
@ -939,12 +939,10 @@ sketch003 = startSketchOn(XZ)
// |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
// |> close()
// sketch002 = startSketchOn({
// plane = {
// origin = { x = 1, y = 2, z = 3 },
// xAxis = { x = 4, y = 5, z = 6 },
// yAxis = { x = 7, y = 8, z = 9 },
// zAxis = { x = 10, y = 11, z = 12 }
// }
// })
// |> startProfileAt([-12.55, 2.89], %)
// |> line(end = [3.02, 1.9])
@ -974,7 +972,7 @@ sketch003 = startSketchOn(XZ)
// |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
// |> close()
// const extrude001 = extrude(sketch001, length = 5)
// sketch002 = startSketchOn(extrude001, seg01)
// sketch002 = startSketchOn(extrude001, face = seg01)
// |> startProfileAt([-12.55, 2.89], %)
// |> line(end = [3.02, 1.9])
// |> line(end = [1.82, -1.49], tag = $seg02)
@ -995,12 +993,10 @@ sketch003 = startSketchOn(XZ)
// |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
// |> close()
// sketch002 = startSketchOn({
// plane = {
// origin = { x = 1, y = 2, z = 3 },
// xAxis = { x = 4, y = 5, z = 6 },
// yAxis = { x = 7, y = 8, z = 9 },
// zAxis = { x = 10, y = 11, z = 12 }
// }
// })
// |> startProfileAt([-12.55, 2.89], %)
// |> line(end = [3.02, 1.9])