Fix KCL examples

This commit is contained in:
Adam Chalmers
2025-03-12 16:52:36 -05:00
parent a1ff7de996
commit f53ef5d370
248 changed files with 188136 additions and 187952 deletions

View File

@ -3,7 +3,7 @@ const part001 = startSketchOn(XY)
|> line(end = [15.1, 2.48])
|> line(end = [3.15, -9.85], tag = $seg01)
|> line(end = [-15.17, -4.1])
|> angledLine([segAng(seg01), 12.35], %)
|> angledLine(angle = segAng(seg01), length = 12.35)
|> line(end = [-13.02, 10.03])
|> close()
|> extrude(length = 4)

View File

@ -95,7 +95,7 @@ fn F = (state, F) => {
} else {
// Pass onto the next instruction
state |> setSketch(%, angledLine({ angle: state.currentAngle, length: state.currentLength }, state.q))
state |> setSketch(%, angledLine(state.q, angle = state.currentAngle, length = state.currentLength))
}
}

View File

@ -6,9 +6,9 @@ let circ = {angle_start: 0, angle_end: 360, radius: radius}
let triangleLen = 500
const p = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> angledLine({angle: 60, length:triangleLen}, %, $a)
|> angledLine({angle: 180, length: triangleLen}, %, $b)
|> angledLine({angle: 300, length: triangleLen}, %, $c)
|> angledLine(angle = 60, length = triangleLen, tag = $a)
|> angledLine(angle = 180, length = triangleLen, tag = $b)
|> angledLine(angle = 300, length = triangleLen, tag = $c)
|> extrude(length = triangleHeight)
fn circl = (x, face) => {

View File

@ -12,7 +12,7 @@ Fy = 0.5
sketch001 = startSketchOn('-YZ')
|> startProfileAt([back_walls_width / 2, 0], %)
|> xLine(length = wall_thickness / 2)
|> angledLineToX({ angle: 45, to: back_walls_width }, %, $seg01)
|> angledLine(angle = 45, endAbsoluteX = back_walls_width, tag = $seg01)
|> yLine(endAbsolute = height)
|> xLine(length = -wall_thickness)
|> yLine(endAbsolute = segEndY(seg01))
@ -21,11 +21,11 @@ sketch001 = startSketchOn('-YZ')
to: back_walls_width / 2 + wall_thickness / 2
}, %)
|> xLine(length = -wall_thickness)
|> angledLineToX({ angle: 180 - 45, to: wall_thickness }, %)
|> angledLine(angle = 180 - 45, endAbsoluteX = wall_thickness)
|> yLine(endAbsolute = height)
|> xLine(endAbsolute = 0)
|> yLine(endAbsolute = segEndY(seg01))
|> angledLineToY({ angle: 180 - 45, to: 0 }, %)
|> angledLine(angle = 180 - 45, endAbsoluteY = 0)
|> close()
part001 = revolve({
angle: 90,
@ -40,7 +40,7 @@ part001 = revolve({
sketch002 = startSketchOn('-YZ')
|> startProfileAt([back_walls_width / 2, 0], %)
|> xLine(length = wall_thickness / 2)
|> angledLineToX({ angle: 45, to: back_walls_width }, %, $seg02)
|> angledLine(angle = 45, endAbsoluteX = back_walls_width, tag = $seg02)
|> yLine(endAbsolute = height)
|> xLine(length = -wall_thickness)
|> yLine(endAbsolute = segEndY(seg01))
@ -49,10 +49,10 @@ sketch002 = startSketchOn('-YZ')
to: back_walls_width / 2 + wall_thickness / 2
}, %)
|> xLine(length = -wall_thickness)
|> angledLineToX({ angle: 180 - 45, to: wall_thickness }, %)
|> angledLine(angle = 180 - 45, endAbsoluteX = wall_thickness)
|> yLine(endAbsolute = height)
|> xLine(endAbsolute = 0)
|> yLine(endAbsolute = segEndY(seg02))
|> angledLineToY({ angle: 180 - 45, to: 0 }, %)
|> angledLine(angle = 180 - 45, endAbsoluteY = 0)
|> close()
|> extrude(length = back_length - height)

View File

@ -1,15 +1,21 @@
fn rect = (origin) => {
return startSketchOn(XZ)
|> startProfileAt(origin, %)
|> angledLine([0, 191.26], %, $rectangleSegmentA001)
|> angledLine([
segAng(rectangleSegmentA001) - 90,
196.99
], %, $rectangleSegmentB001)
|> angledLine([
segAng(rectangleSegmentA001),
-segLen(rectangleSegmentA001)
], %, $rectangleSegmentC001)
|> angledLine(
angle = 0,
length = 191.26,
tag = $rectangleSegmentA001,
)
|> angledLine(
angle = segAng(rectangleSegmentA001) - 90,
length = 196.99,
tag = $rectangleSegmentB001,
)
|> angledLine(
angle = segAng(rectangleSegmentA001),
length = -segLen(rectangleSegmentA001),
tag = $rectangleSegmentC001,
)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
}

View File

@ -111,7 +111,7 @@ const plane001 = {
const sketch001l = startSketchOn(plane001)
|> startProfileAt([0, 0], %)
|> xLine(length = serverDepth + .8)
|> angledLineToY({ angle: -45, to: 1 }, %)
|> angledLine(angle = -45, endAbsoluteY = 1)
|> xLine(length = -serverDepth + 2 - .8, tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
@ -172,8 +172,8 @@ const sketch006l = startSketchOn(plane001)
intersectTag: lineToIntersect4,
offset: 0
}, %)
|> angledLine({ angle: -70, length: 1.414 }, %)
|> angledLineToY({ angle: 70 + 180, to: 2 - 1 }, %)
|> angledLine(angle = -70, length = 1.414 )
|> angledLine(angle = 70 + 180, endAbsoluteY = 2 - 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude006l = extrude(sketch006l, length = 1)
@ -188,7 +188,7 @@ const sketch007l = startSketchOn(plane001)
intersectTag: lineToIntersect5,
offset: 0
}, %)
|> angledLine({ angle: -70, length: 1.414 }, %)
|> angledLine(angle = -70, length = 1.414 )
|> angledLineToY({
angle: 70 + 180,
to: railHeight * 1.75 + 1
@ -214,7 +214,7 @@ const plane002 = {
const sketch001w = startSketchOn(plane002)
|> startProfileAt([0, 0], %)
|> xLine(length = depth)
|> angledLineToY({ angle: -45, to: 1 }, %)
|> angledLine(angle = -45, endAbsoluteY = 1)
|> xLine(length = -depth + 2, tag = $seg01w)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
@ -223,7 +223,7 @@ const extrude001w = extrude(sketch001w, length = 1)
const sketch002w = startSketchOn(plane002)
|> startProfileAt([depth, 0], %)
|> yLine(length = railHeight * 1.75 + 2)
|> angledLineToX({ angle: -135, to: depth - 1 }, %)
|> angledLine(angle = -135, endAbsoluteX = depth - 1)
|> yLine(length = -railHeight * 1.75)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
@ -255,9 +255,9 @@ const extrude004w = extrude(sketch004w, length = 1)
const sketch005w = startSketchOn(plane002)
|> startProfileAt([1, 40.6 + 1.75 / 2], %)
|> angledLine({ angle: -23, length: 35.5 }, %)
|> angledLine({ angle: -23 + 90 + 45, length: 1.413 }, %)
|> angledLineToX({ angle: -23, to: 1 }, %, $lineToIntersect)
|> angledLine(angle = -23, length = 35.5 )
|> angledLine(angle = -23 + 90 + 45, length = 1.413 )
|> angledLine(angle = -23, endAbsoluteX = 1, tag = $lineToIntersect)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude005w = extrude(sketch005w, length = 1)
@ -267,7 +267,7 @@ const sketch006w = startSketchOn(plane002)
1 + 35.5 * cos(23 * pi() / 180),
40.6 - (35.5 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> angledLineToX({ angle: -23 + 90, to: depth - 1 }, %)
|> angledLine(angle = -23 + 90, endAbsoluteX = depth - 1)
|> yLine(length = 2.56)
|> angledLineThatIntersects({
angle: -23 + 90 + 180,
@ -280,8 +280,8 @@ const extrude006w = extrude(sketch006w, length = 1)
const sketch007w = startSketchOn(plane002)
|> startProfileAt([depth - 1, 60.65 + 1.75 / 2], %)
|> angledLine({ angle: -23 + 180, length: 34.93 }, %, $lineToIntersect3)
|> angledLine({ angle: 23 - 90, length: 1.414 }, %)
|> angledLine(angle = -23 + 180, length = 34.93 , tag = $lineToIntersect3)
|> angledLine(angle = 23 - 90, length = 1.414 )
|> angledLineThatIntersects({
angle: -23 + 180,
intersectTag: lineToIntersect2,
@ -298,7 +298,7 @@ const sketch008w = startSketchOn(plane002)
intersectTag: lineToIntersect3,
offset: 0
}, %)
|> angledLine({ angle: -23 - 45, length: 1.414 }, %)
|> angledLine(angle = -23 - 45, length = 1.414 )
|> angledLineThatIntersects({
angle: -23 - 90,
intersectTag: lineToIntersect,
@ -310,18 +310,18 @@ const extrude008w = extrude(sketch008w, length = 1)
const sketch009w = startSketchOn(plane002)
|> startProfileAt([31.2, 33.3 + 1.75 / 2], %)
|> angledLine({ angle: -23 - 45, length: 1.414 }, %)
|> angledLine({ angle: 90 - 23, length: 28 }, %)
|> angledLine({ angle: -23 + 45, length: -1.414 }, %)
|> angledLine(angle = -23 - 45, length = 1.414 )
|> angledLine(angle = 90 - 23, length = 28 )
|> angledLine(angle = -23 + 45, length = -1.414 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude009w = extrude(sketch009w, length = 1)
const sketch010w = startSketchOn(plane002)
|> startProfileAt([31.2, 33.3 + 1.75 / 2], %)
|> angledLine({ angle: -23 - 45, length: 1.414 }, %)
|> angledLine({ angle: 180 - 23, length: 28 }, %)
|> angledLine({ angle: -23 + 45, length: 1.414 }, %)
|> angledLine(angle = -23 - 45, length = 1.414 )
|> angledLine(angle = 180 - 23, length = 28 )
|> angledLine(angle = -23 + 45, length = 1.414 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude010w = extrude(sketch010w, length = 1)
@ -331,9 +331,9 @@ const sketch011w = startSketchOn(plane002)
31.2 - ((28 - 2) * cos(23 * pi() / 180)),
33.3 + (28 - 2) * sin(23 * pi() / 180) + 1.75 / 2
], %)
|> angledLine({ angle: 90 - 23, length: 28 - 2 }, %)
|> angledLine({ angle: -23 - 45, length: -1.414 }, %)
|> angledLine({ angle: 90 - 23 + 180, length: 28 }, %)
|> angledLine(angle = 90 - 23, length = 28 - 2 )
|> angledLine(angle = -23 - 45, length = -1.414 )
|> angledLine(angle = 90 - 23 + 180, length = 28 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude011w = extrude(sketch011w, length = 1)
@ -343,9 +343,9 @@ const sketch012w = startSketchOn(plane002)
31.2 + (28 - 2) * sin(23 * pi() / 180),
33.3 + (28 - 2) * cos(23 * pi() / 180) + 1.75 / 2
], %)
|> angledLine({ angle: 180 - 23, length: 28 - 2 }, %)
|> angledLine({ angle: -23 - 45, length: -1.414 }, %)
|> angledLine({ angle: -23, length: 28 }, %)
|> angledLine(angle = 180 - 23, length = 28 - 2 )
|> angledLine(angle = -23 - 45, length = -1.414 )
|> angledLine(angle = -23, length = 28 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude012w = extrude(sketch012w, length = 1)
@ -355,8 +355,8 @@ const sketch013w = startSketchOn(plane002)
1 + 4 * cos(23 * pi() / 180),
40.6 - (4 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> angledLine({ angle: -23, length: 1 }, %)
|> angledLineToX({ angle: -23 + 90, to: 1 }, %)
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 + 90, endAbsoluteX = 1)
|> yLine(length = 2.56)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
@ -367,9 +367,9 @@ const sketch014w = startSketchOn(plane002)
1 + 12 * cos(23 * pi() / 180),
40.6 - (12 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> angledLine({ angle: -23 - 90, length: 36 / 2 }, %)
|> angledLine({ angle: -23, length: 1 }, %)
|> angledLine({ angle: -23 - 90, length: -36 / 2 }, %)
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude014w = extrude(sketch014w, length = 1)
@ -379,9 +379,9 @@ const sketch015w = startSketchOn(plane002)
1 + (36 - 5.55 - 8) * cos(23 * pi() / 180),
40.6 - ((36 - 5.55 - 8) * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> angledLine({ angle: -23 - 90, length: 36 / 2 }, %)
|> angledLine({ angle: -23, length: 1 }, %)
|> angledLine({ angle: -23 - 90, length: -36 / 2 }, %)
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude015w = extrude(sketch015w, length = 1)
@ -391,9 +391,9 @@ const sketch016w = startSketchOn(plane002)
1 + (36 - 5.5) * cos(23 * pi() / 180),
40.6 - ((36 - 5.5) * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> angledLine({ angle: -23 - 90, length: 36 / 2 }, %)
|> angledLine({ angle: -23, length: 1 }, %)
|> angledLine({ angle: -23 - 90, length: -36 / 2 }, %)
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude016w = extrude(sketch016w, length = 1)
@ -408,7 +408,7 @@ const sketch017w = startSketchOn(plane002)
angleEnd: 180 - 23,
radius: 7 / 2 + 2
}, %)
|> angledLine({ angle: -23 + 180, length: -1 }, %)
|> angledLine(angle = -23 + 180, length = -1 )
|> arc({
angleStart: 180 - 23,
angleEnd: -23,
@ -428,7 +428,7 @@ const sketch018w = startSketchOn(plane002)
angleEnd: 180 - 23,
radius: 7 / 2 + 2
}, %)
|> angledLine({ angle: -23 + 180, length: -1 }, %)
|> angledLine(angle = -23 + 180, length = -1 )
|> arc({
angleStart: 180 - 23,
angleEnd: -23,
@ -440,9 +440,9 @@ const extrude018w = extrude(sketch018w, length = 1)
const sketch019w = startSketchOn(plane002)
|> startProfileAt([1, 27.8 + 1.75 / 2], %)
|> angledLine({ angle: -23, length: 7 }, %)
|> angledLine({ angle: -23 + 90, length: -1 }, %)
|> angledLineToX({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, length = 7 )
|> angledLine(angle = -23 + 90, length = -1 )
|> angledLine(angle = -23, endAbsoluteX = 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude019w = extrude(sketch019w, length = 1)
@ -452,18 +452,18 @@ const sketch020w = startSketchOn(plane002)
1 + (36 - 5.53 - 12) * cos(23 * pi() / 180),
27.8 + 1.75 / 2 - ((36 - 5.53 - 12) * sin(23 * pi() / 180))
], %)
|> angledLine({ angle: -23, length: 7 }, %)
|> angledLine({ angle: -23 + 90, length: -1 }, %)
|> angledLine({ angle: -23 + 180, length: 7 }, %)
|> angledLine(angle = -23, length = 7 )
|> angledLine(angle = -23 + 90, length = -1 )
|> angledLine(angle = -23 + 180, length = 7 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude020w = extrude(sketch020w, length = 1)
const sketch021w = startSketchOn(plane002)
|> startProfileAt([1, 21.9], %)
|> angledLineToX({ angle: -23, to: depth - 1 }, %)
|> angledLine(angle = -23, endAbsoluteX = depth - 1)
|> yLine(length = -1.1)
|> angledLineToX({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, endAbsoluteX = 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude021w = extrude(sketch021w, length = 1)
@ -475,7 +475,7 @@ const sketch022w = startSketchOn(plane002)
to: railHeight * 1.75 + 1
}, %)
|> xLine(length = -2.56)
|> angledLineToX({ angle: -23, to: depth - 1 }, %)
|> angledLine(angle = -23, endAbsoluteX = depth - 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude022w = extrude(sketch022w, length = 1)
@ -487,25 +487,25 @@ const sketch023w = startSketchOn(plane002)
to: railHeight * 1.75 + 1
}, %)
|> xLine(length = 1.086)
|> angledLineToX({ angle: 90 - 23, to: 1 }, %)
|> angledLine(angle = 90 - 23, endAbsoluteX = 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude023w = extrude(sketch023w, length = 1)
const sketch024w = startSketchOn(plane002)
|> startProfileAt([1, 16.5], %)
|> angledLineToY({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, endAbsoluteY = 1)
|> xLine(length = -2.56)
|> angledLineToX({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, endAbsoluteX = 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude024w = extrude(sketch024w, length = 1)
const sketch025w = startSketchOn(plane002)
|> startProfileAt([1, 4], %)
|> angledLineToY({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, endAbsoluteY = 1)
|> xLine(length = -2.56)
|> angledLineToX({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, endAbsoluteX = 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude025w = extrude(sketch025w, length = 1)

View File

@ -109,7 +109,7 @@ const plane001 = {
const sketch001l = startSketchOn(plane001)
|> startProfileAt([0, 0], %)
|> xLine(length = serverDepth + .8)
|> angledLineToY({ angle: -45, to: 1 }, %)
|> angledLine(angle = -45, endAbsoluteY = 1)
|> xLine(length = -serverDepth + 2 - .8, tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
@ -170,8 +170,8 @@ const sketch006l = startSketchOn(plane001)
intersectTag: lineToIntersect4,
offset: 0
}, %)
|> angledLine({ angle: -70, length: 1.414 }, %)
|> angledLineToY({ angle: 70 + 180, to: 2 - 1 }, %)
|> angledLine(angle = -70, length = 1.414 )
|> angledLine(angle = 70 + 180, endAbsoluteY = 2 - 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude006l = extrude(sketch006l, length = 1)
@ -186,7 +186,7 @@ const sketch007l = startSketchOn(plane001)
intersectTag: lineToIntersect5,
offset: 0
}, %)
|> angledLine({ angle: -70, length: 1.414 }, %)
|> angledLine(angle = -70, length = 1.414 )
|> angledLineToY({
angle: 70 + 180,
to: railHeight * 1.75 + 1
@ -212,7 +212,7 @@ const plane002 = {
const sketch001w = startSketchOn(plane002)
|> startProfileAt([0, 0], %)
|> xLine(length = depth)
|> angledLineToY({ angle: -45, to: 1 }, %)
|> angledLine(angle = -45, endAbsoluteY = 1)
|> xLine(length = -depth + 2, tag = $seg01w)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
@ -221,7 +221,7 @@ const extrude001w = extrude(sketch001w, length = 1)
const sketch002w = startSketchOn(plane002)
|> startProfileAt([depth, 0], %)
|> yLine(length = railHeight * 1.75 + 2)
|> angledLineToX({ angle: -135, to: depth - 1 }, %)
|> angledLine(angle = -135, endAbsoluteX = depth - 1)
|> yLine(length = -railHeight * 1.75)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
@ -253,9 +253,9 @@ const extrude004w = extrude(sketch004w, length = 1)
const sketch005w = startSketchOn(plane002)
|> startProfileAt([1, 40.6 + 1.75 / 2], %)
|> angledLine({ angle: -23, length: 35.5 }, %)
|> angledLine({ angle: -23 + 90 + 45, length: 1.413 }, %)
|> angledLineToX({ angle: -23, to: 1 }, %, $lineToIntersect)
|> angledLine(angle = -23, length = 35.5 )
|> angledLine(angle = -23 + 90 + 45, length = 1.413 )
|> angledLine(angle = -23, endAbsoluteX = 1, tag = $lineToIntersect)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude005w = extrude(sketch005w, length = 1)
@ -265,7 +265,7 @@ const sketch006w = startSketchOn(plane002)
1 + 35.5 * cos(23 * pi() / 180),
40.6 - (35.5 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> angledLineToX({ angle: -23 + 90, to: depth - 1 }, %)
|> angledLine(angle = -23 + 90, endAbsoluteX = depth - 1)
|> yLine(length = 2.56)
|> angledLineThatIntersects({
angle: -23 + 90 + 180,
@ -278,8 +278,8 @@ const extrude006w = extrude(sketch006w, length = 1)
const sketch007w = startSketchOn(plane002)
|> startProfileAt([depth - 1, 60.65 + 1.75 / 2], %)
|> angledLine({ angle: -23 + 180, length: 34.93 }, %, $lineToIntersect3)
|> angledLine({ angle: 23 - 90, length: 1.414 }, %)
|> angledLine(angle = -23 + 180, length = 34.93 , tag = $lineToIntersect3)
|> angledLine(angle = 23 - 90, length = 1.414 )
|> angledLineThatIntersects({
angle: -23 + 180,
intersectTag: lineToIntersect2,
@ -296,7 +296,7 @@ const sketch008w = startSketchOn(plane002)
intersectTag: lineToIntersect3,
offset: 0
}, %)
|> angledLine({ angle: -23 - 45, length: 1.414 }, %)
|> angledLine(angle = -23 - 45, length = 1.414 )
|> angledLineThatIntersects({
angle: -23 - 90,
intersectTag: lineToIntersect,
@ -308,18 +308,18 @@ const extrude008w = extrude(sketch008w, length = 1)
const sketch009w = startSketchOn(plane002)
|> startProfileAt([31.2, 33.3 + 1.75 / 2], %)
|> angledLine({ angle: -23 - 45, length: 1.414 }, %)
|> angledLine({ angle: 90 - 23, length: 28 }, %)
|> angledLine({ angle: -23 + 45, length: -1.414 }, %)
|> angledLine(angle = -23 - 45, length = 1.414 )
|> angledLine(angle = 90 - 23, length = 28 )
|> angledLine(angle = -23 + 45, length = -1.414 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude009w = extrude(sketch009w, length = 1)
const sketch010w = startSketchOn(plane002)
|> startProfileAt([31.2, 33.3 + 1.75 / 2], %)
|> angledLine({ angle: -23 - 45, length: 1.414 }, %)
|> angledLine({ angle: 180 - 23, length: 28 }, %)
|> angledLine({ angle: -23 + 45, length: 1.414 }, %)
|> angledLine(angle = -23 - 45, length = 1.414 )
|> angledLine(angle = 180 - 23, length = 28 )
|> angledLine(angle = -23 + 45, length = 1.414 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude010w = extrude(sketch010w, length = 1)
@ -329,9 +329,9 @@ const sketch011w = startSketchOn(plane002)
31.2 - ((28 - 2) * cos(23 * pi() / 180)),
33.3 + (28 - 2) * sin(23 * pi() / 180) + 1.75 / 2
], %)
|> angledLine({ angle: 90 - 23, length: 28 - 2 }, %)
|> angledLine({ angle: -23 - 45, length: -1.414 }, %)
|> angledLine({ angle: 90 - 23 + 180, length: 28 }, %)
|> angledLine(angle = 90 - 23, length = 28 - 2 )
|> angledLine(angle = -23 - 45, length = -1.414 )
|> angledLine(angle = 90 - 23 + 180, length = 28 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude011w = extrude(sketch011w, length = 1)
@ -341,9 +341,9 @@ const sketch012w = startSketchOn(plane002)
31.2 + (28 - 2) * sin(23 * pi() / 180),
33.3 + (28 - 2) * cos(23 * pi() / 180) + 1.75 / 2
], %)
|> angledLine({ angle: 180 - 23, length: 28 - 2 }, %)
|> angledLine({ angle: -23 - 45, length: -1.414 }, %)
|> angledLine({ angle: -23, length: 28 }, %)
|> angledLine(angle = 180 - 23, length = 28 - 2 )
|> angledLine(angle = -23 - 45, length = -1.414 )
|> angledLine(angle = -23, length = 28 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude012w = extrude(sketch012w, length = 1)
@ -353,8 +353,8 @@ const sketch013w = startSketchOn(plane002)
1 + 4 * cos(23 * pi() / 180),
40.6 - (4 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> angledLine({ angle: -23, length: 1 }, %)
|> angledLineToX({ angle: -23 + 90, to: 1 }, %)
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 + 90, endAbsoluteX = 1)
|> yLine(length = 2.56)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
@ -365,9 +365,9 @@ const sketch014w = startSketchOn(plane002)
1 + 12 * cos(23 * pi() / 180),
40.6 - (12 * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> angledLine({ angle: -23 - 90, length: 36 / 2 }, %)
|> angledLine({ angle: -23, length: 1 }, %)
|> angledLine({ angle: -23 - 90, length: -36 / 2 }, %)
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude014w = extrude(sketch014w, length = 1)
@ -377,9 +377,9 @@ const sketch015w = startSketchOn(plane002)
1 + (36 - 5.55 - 8) * cos(23 * pi() / 180),
40.6 - ((36 - 5.55 - 8) * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> angledLine({ angle: -23 - 90, length: 36 / 2 }, %)
|> angledLine({ angle: -23, length: 1 }, %)
|> angledLine({ angle: -23 - 90, length: -36 / 2 }, %)
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude015w = extrude(sketch015w, length = 1)
@ -389,9 +389,9 @@ const sketch016w = startSketchOn(plane002)
1 + (36 - 5.5) * cos(23 * pi() / 180),
40.6 - ((36 - 5.5) * sin(23 * pi() / 180)) + 1.75 / 2
], %)
|> angledLine({ angle: -23 - 90, length: 36 / 2 }, %)
|> angledLine({ angle: -23, length: 1 }, %)
|> angledLine({ angle: -23 - 90, length: -36 / 2 }, %)
|> angledLine(angle = -23 - 90, length = 36 / 2 )
|> angledLine(angle = -23, length = 1 )
|> angledLine(angle = -23 - 90, length = -36 / 2 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude016w = extrude(sketch016w, length = 1)
@ -406,7 +406,7 @@ const sketch017w = startSketchOn(plane002)
angleEnd: 180 - 23,
radius: 7 / 2 + 2
}, %)
|> angledLine({ angle: -23 + 180, length: -1 }, %)
|> angledLine(angle = -23 + 180, length = -1 )
|> arc({
angleStart: 180 - 23,
angleEnd: -23,
@ -426,7 +426,7 @@ const sketch018w = startSketchOn(plane002)
angleEnd: 180 - 23,
radius: 7 / 2 + 2
}, %)
|> angledLine({ angle: -23 + 180, length: -1 }, %)
|> angledLine(angle = -23 + 180, length = -1 )
|> arc({
angleStart: 180 - 23,
angleEnd: -23,
@ -438,9 +438,9 @@ const extrude018w = extrude(sketch018w, length = 1)
const sketch019w = startSketchOn(plane002)
|> startProfileAt([1, 27.8 + 1.75 / 2], %)
|> angledLine({ angle: -23, length: 7 }, %)
|> angledLine({ angle: -23 + 90, length: -1 }, %)
|> angledLineToX({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, length = 7 )
|> angledLine(angle = -23 + 90, length = -1 )
|> angledLine(angle = -23, endAbsoluteX = 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude019w = extrude(sketch019w, length = 1)
@ -450,18 +450,18 @@ const sketch020w = startSketchOn(plane002)
1 + (36 - 5.53 - 12) * cos(23 * pi() / 180),
27.8 + 1.75 / 2 - ((36 - 5.53 - 12) * sin(23 * pi() / 180))
], %)
|> angledLine({ angle: -23, length: 7 }, %)
|> angledLine({ angle: -23 + 90, length: -1 }, %)
|> angledLine({ angle: -23 + 180, length: 7 }, %)
|> angledLine(angle = -23, length = 7 )
|> angledLine(angle = -23 + 90, length = -1 )
|> angledLine(angle = -23 + 180, length = 7 )
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude020w = extrude(sketch020w, length = 1)
const sketch021w = startSketchOn(plane002)
|> startProfileAt([1, 21.9], %)
|> angledLineToX({ angle: -23, to: depth - 1 }, %)
|> angledLine(angle = -23, endAbsoluteX = depth - 1)
|> yLine(length = -1.1)
|> angledLineToX({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, endAbsoluteX = 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude021w = extrude(sketch021w, length = 1)
@ -473,7 +473,7 @@ const sketch022w = startSketchOn(plane002)
to: railHeight * 1.75 + 1
}, %)
|> xLine(length = -2.56)
|> angledLineToX({ angle: -23, to: depth - 1 }, %)
|> angledLine(angle = -23, endAbsoluteX = depth - 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude022w = extrude(sketch022w, length = 1)
@ -485,25 +485,25 @@ const sketch023w = startSketchOn(plane002)
to: railHeight * 1.75 + 1
}, %)
|> xLine(length = 1.086)
|> angledLineToX({ angle: 90 - 23, to: 1 }, %)
|> angledLine(angle = 90 - 23, endAbsoluteX = 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude023w = extrude(sketch023w, length = 1)
const sketch024w = startSketchOn(plane002)
|> startProfileAt([1, 16.5], %)
|> angledLineToY({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, endAbsoluteY = 1)
|> xLine(length = -2.56)
|> angledLineToX({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, endAbsoluteX = 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude024w = extrude(sketch024w, length = 1)
const sketch025w = startSketchOn(plane002)
|> startProfileAt([1, 4], %)
|> angledLineToY({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, endAbsoluteY = 1)
|> xLine(length = -2.56)
|> angledLineToX({ angle: -23, to: 1 }, %)
|> angledLine(angle = -23, endAbsoluteX = 1)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
const extrude025w = extrude(sketch025w, length = 1)

View File

@ -6,10 +6,10 @@ let angleStart = 110
startSketchOn(XY)
|> startProfileAt([startX, startY], %)
|> angledLine({
angle: angleStart,
length: .000001,
}, %)
|> angledLine(
angle = angleStart,
length = .000001,
)
|> tangentialArc({
offset: angleOffset,
radius: r,

File diff suppressed because it is too large Load Diff