Skip to content

Commit

Permalink
Fix car wheel assembly: tire
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchalmers committed Jan 16, 2025
1 parent f3db23c commit 3c0e2a7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions car-wheel-assembly/car-tire.kcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,29 @@ export fn carTire () {
// Create the sketch of the tire
tireSketch = startSketchOn("XY")
|> startProfileAt([tireInnerDiameter / 2, tireDepth / 2], %)
|> lineTo([
|> line(endAbsolute = [
tireOuterDiameter / 2 - bendRadius,
tireDepth / 2
], %, $edge1)
], tag = $edge1)
|> tangentialArc({ offset = -90, radius = bendRadius }, %)
|> lineTo([
|> line(endAbsolute = [
tireOuterDiameter / 2,
tireDepth / 2 - tireTreadOffset
], %)
])
|> line(end = [-tireTreadDepth, 0])
|> line(end = [0, -tireTreadWidth])
|> line(end = [tireTreadDepth, 0])
|> lineTo([
|> line(endAbsolute = [
tireOuterDiameter / 2,
-tireDepth / 2 + tireTreadOffset + tireTreadWidth
], %)
])
|> line(end = [-tireTreadDepth, 0])
|> line(end = [0, -tireTreadWidth])
|> line(end = [tireTreadDepth, 0])
|> lineTo([
|> line(endAbsolute = [
tireOuterDiameter / 2,
-tireDepth / 2 + bendRadius
], %)
])
|> tangentialArc({ offset = -90, radius = bendRadius }, %)
|> line(endAbsolute = [tireInnerDiameter / 2, -tireDepth / 2], tag = $edge2)
|> close()
Expand Down

0 comments on commit 3c0e2a7

Please sign in to comment.