KCL: angledLineThatIntersects migrate to kwargs (#6296)
* KCL: Convert angledLineThatIntersects to use kwargs * Update KCL tests and samples * WIP * Fix tsc and lint errors * Fix missing cases * Fix modifyAst unit tests * Fix sketch unit tests * Fix std unit tests * Fix to not have extra docs * Fix more unit tests * Fix bench test * Fix e2e tests to use new kw args * tiny lint * Fix adding constraint from UI to work * Fix to use labeledArg constraints and use the correct order of args * Fix selections e2e test * Fix e2e test expectation App was working as expected, but the e2e test was expecting the old code, not the new code. * Fix order of constraints in unit test * Update docs * Fix KCL formatting * Update output --------- Co-authored-by: Jonathan Tran <jonnytran@gmail.com>
This commit is contained in:
@ -152,11 +152,11 @@ const extrude005l = extrude(sketch005l, length = 1)
|
||||
|
||||
const sketch006l = startSketchOn(plane001)
|
||||
|> startProfileAt([1, 1], %)
|
||||
|> angledLineThatIntersects({
|
||||
angle: 70,
|
||||
intersectTag: lineToIntersect4,
|
||||
offset: 0
|
||||
}, %)
|
||||
|> angledLineThatIntersects(
|
||||
angle = 70,
|
||||
intersectTag = lineToIntersect4,
|
||||
offset = 0,
|
||||
)
|
||||
|> angledLine(angle = -70, length = 1.414 )
|
||||
|> angledLine(angle = 70 + 180, endAbsoluteY = 2 - 1)
|
||||
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||
@ -168,11 +168,11 @@ const sketch007l = startSketchOn(plane001)
|
||||
serverDepth - 1.2,
|
||||
railHeight * 1.75 + 1
|
||||
], %)
|
||||
|> angledLineThatIntersects({
|
||||
angle: 70,
|
||||
intersectTag: lineToIntersect5,
|
||||
offset: 0
|
||||
}, %)
|
||||
|> angledLineThatIntersects(
|
||||
angle = 70,
|
||||
intersectTag = lineToIntersect5,
|
||||
offset = 0,
|
||||
)
|
||||
|> angledLine(angle = -70, length = 1.414 )
|
||||
|> angledLine(angle = 70 + 180, endAbsoluteY = railHeight * 1.75 + 1)
|
||||
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||
@ -243,11 +243,12 @@ const sketch006w = startSketchOn(plane002)
|
||||
], %)
|
||||
|> angledLine(angle = -23 + 90, endAbsoluteX = depth - 1)
|
||||
|> yLine(length = 2.56)
|
||||
|> angledLineThatIntersects({
|
||||
angle: -23 + 90 + 180,
|
||||
intersectTag: lineToIntersect,
|
||||
offset: 0
|
||||
}, %, $lineToIntersect2)
|
||||
|> angledLineThatIntersects(
|
||||
angle = -23 + 90 + 180,
|
||||
intersectTag = lineToIntersect,
|
||||
offset = 0,
|
||||
tag = $lineToIntersect2,
|
||||
)
|
||||
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||
|> close()
|
||||
const extrude006w = extrude(sketch006w, length = 1)
|
||||
@ -256,28 +257,28 @@ const sketch007w = startSketchOn(plane002)
|
||||
|> startProfileAt([depth - 1, 60.65 + 1.75 / 2], %)
|
||||
|> angledLine(angle = -23 + 180, length = 34.93 , tag = $lineToIntersect3)
|
||||
|> angledLine(angle = 23 - 90, length = 1.414 )
|
||||
|> angledLineThatIntersects({
|
||||
angle: -23 + 180,
|
||||
intersectTag: lineToIntersect2,
|
||||
offset: 0
|
||||
}, %)
|
||||
|> angledLineThatIntersects(
|
||||
angle = -23 + 180,
|
||||
intersectTag = lineToIntersect2,
|
||||
offset = 0,
|
||||
)
|
||||
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||
|> close()
|
||||
const extrude007w = extrude(sketch007w, length = 1)
|
||||
|
||||
const sketch008w = startSketchOn(plane002)
|
||||
|> startProfileAt([1, 41.7 + 1.75 / 2], %)
|
||||
|> angledLineThatIntersects({
|
||||
angle: -23 + 90,
|
||||
intersectTag: lineToIntersect3,
|
||||
offset: 0
|
||||
}, %)
|
||||
|> angledLineThatIntersects(
|
||||
angle = -23 + 90,
|
||||
intersectTag = lineToIntersect3,
|
||||
offset = 0,
|
||||
)
|
||||
|> angledLine(angle = -23 - 45, length = 1.414 )
|
||||
|> angledLineThatIntersects({
|
||||
angle: -23 - 90,
|
||||
intersectTag: lineToIntersect,
|
||||
offset: 0
|
||||
}, %)
|
||||
|> angledLineThatIntersects(
|
||||
angle = -23 - 90,
|
||||
intersectTag = lineToIntersect,
|
||||
offset = 0,
|
||||
)
|
||||
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||
|> close()
|
||||
const extrude008w = extrude(sketch008w, length = 1)
|
||||
|
||||
Reference in New Issue
Block a user