2023-10-02 16:14:09 -07:00
|
|
|
export const bracket = `const sigmaAllow = 15000 // psi
|
|
|
|
const width = 11 // inch
|
2023-09-15 22:37:40 -04:00
|
|
|
const p = 150 // Force on shelf - lbs
|
2023-10-02 16:14:09 -07:00
|
|
|
const distance = 12 // inches
|
2023-09-15 22:37:40 -04:00
|
|
|
const FOS = 2
|
2023-10-02 16:14:09 -07:00
|
|
|
const thickness = sqrt(distance * p * FOS * 6 / ( sigmaAllow * width ))
|
|
|
|
const filletR = thickness * 2
|
|
|
|
const shelfMountL = 9
|
|
|
|
const wallMountL = 8
|
2023-09-15 22:37:40 -04:00
|
|
|
|
|
|
|
const bracket = startSketchAt([0, 0])
|
2023-10-02 16:14:09 -07:00
|
|
|
|> line([0, wallMountL], %)
|
|
|
|
|> tangentalArc({
|
|
|
|
radius: filletR,
|
|
|
|
offset: 90
|
|
|
|
}, %)
|
|
|
|
|> line([-shelfMountL, 0], %)
|
2023-09-15 22:37:40 -04:00
|
|
|
|> line([0, -thickness], %)
|
2023-10-02 16:14:09 -07:00
|
|
|
|> line([shelfMountL, 0], %)
|
|
|
|
|> tangentalArc({
|
|
|
|
radius: filletR - thickness,
|
|
|
|
offset: -90
|
|
|
|
}, %)
|
|
|
|
|> line([0, -wallMountL], %)
|
2023-09-15 22:37:40 -04:00
|
|
|
|> close(%)
|
|
|
|
|> extrude(width, %)
|
|
|
|
|
|
|
|
show(bracket)
|
|
|
|
`
|