Skip to content

Commit

Permalink
feat: add zip tie holes to rubber band holder
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Aug 16, 2022
1 parent cd28434 commit e200747
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/models/robotWars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,30 @@ export const motorSupport = (
),
)

const zipTieHole = () =>
union(
cuboid({
size: [Math.sqrt(2.5 * 2.5 * 2), 10, 1],
}),
subtract(
translateZ(
0.5,
rotateY(
degToRad(45),
cuboid({
size: [2.5, 10, 2.5],
}),
),
),
translateZ(
-1,
cuboid({
size: [Math.sqrt(2.5 * 2.5 * 2), 10, 1],
}),
),
),
)

const rubberStrapHolder = () => {
const width = 8.5
const depth = 5
Expand Down Expand Up @@ -173,6 +197,9 @@ const rubberStrapHolder = () => {
center: [0, -1, 0],
}),
...ridges,
// Zip tie holes
translateZ(3, zipTieHole()),
translateZ(-3, zipTieHole()),
),
),
)
Expand Down

0 comments on commit e200747

Please sign in to comment.