From e200747574dba3dcd507d46680cf83917a07db7f Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Tue, 16 Aug 2022 16:01:29 +0200 Subject: [PATCH] feat: add zip tie holes to rubber band holder --- src/models/robotWars.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/models/robotWars.ts b/src/models/robotWars.ts index 2c42fd6..2b35b54 100644 --- a/src/models/robotWars.ts +++ b/src/models/robotWars.ts @@ -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 @@ -173,6 +197,9 @@ const rubberStrapHolder = () => { center: [0, -1, 0], }), ...ridges, + // Zip tie holes + translateZ(3, zipTieHole()), + translateZ(-3, zipTieHole()), ), ), )