Created
October 20, 2025 03:08
-
-
Save drom/88726bf69be47b66d9cc1ecb5b616879 to your computer and use it in GitHub Desktop.
sewer cleanout wrench
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Insert this code here: https://studio.replicad.xyz/workbench | |
| const { makeBox, makeCylinder } = replicad; | |
| const main = () => { | |
| const H = 20 | |
| const OD = 80 | |
| const X = 26 | |
| let wrench | |
| wrench = makeCylinder(OD / 2, H) | |
| wrench = wrench.cut(makeBox([-X/2, -X/2, 0], [X/2, X/2, H+1])) | |
| wrench = Array.from({length: 11}, (e, i) => i).reduce((res, e, i, arr) => | |
| res.cut(makeCylinder(6, H+1).translateX(OD/2).rotate((360 * i / arr.length))), | |
| wrench | |
| ) | |
| wrench = wrench.chamfer(1) | |
| return [ | |
| {name: 'sewer-cleanout-wrench-v0.1.0', shape: wrench, color: '#888', opacity: 1}, | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment