* Change tangentialArc, tangentialArcTo, and tangentialArcToRelative to keyword args * Change tangentialArc offset to angle and convert to kw arg calls * Fix lints * Fix sketch errors and all unit tests passing * Fix tangentialArcTo calls in KCL samples * Update tangentialArc in samples * Update sim test output * Fix formatting * Fix mistake in merge * Fix gear rack sample * Update output after more samples fixes * Update gear rack output * Add end label to docs snippet * Fix to not add endAbsolute for an arc with radius or angle arguments * Update docs outputs * Fix formatting * Fix executor tests * Fix formatting * Fix bench input files * Fix spelling * Improve error messages --------- Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
22 lines
611 B
Plaintext
22 lines
611 B
Plaintext
sigmaAllow = 15000 // psi
|
|
width = 11 // inch
|
|
p = 150 // Force on shelf - lbs
|
|
distance = 12 // inches
|
|
FOS = 2
|
|
thickness = sqrt(distance * p * FOS * 6 / (sigmaAllow * width))
|
|
filletR = thickness * 2
|
|
shelfMountL = 9
|
|
wallMountL = 8
|
|
|
|
bracket = startSketchOn(XY)
|
|
|> startProfileAt([0, 0], %)
|
|
|> line(end = [0, wallMountL])
|
|
|> tangentialArc(radius = filletR, angle = 90)
|
|
|> line(end = [-shelfMountL, 0])
|
|
|> line(end = [0, -thickness])
|
|
|> line(end = [shelfMountL, 0])
|
|
|> tangentialArc(radius = filletR - thickness, angle = -90)
|
|
|> line(end = [0, -wallMountL])
|
|
|> close(%)
|
|
|> extrude(length = width)
|