Last active
December 15, 2024 09:52
-
-
Save Hermann-SW/85d31095bbae8ceb40c60c71b90042a4 to your computer and use it in GitHub Desktop.
cutlery organizer insert JSCAD file
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
| const jscad = require('@jscad/modeling') | |
| const { translate } = jscad.transforms | |
| const { subtract } = jscad.booleans | |
| const { extrudeLinear } = jscad.extrusions | |
| const { rectangle } = jscad.primitives | |
| const { geom2 } = jscad.geometries | |
| h=43 | |
| l1=78 | |
| l2=95 | |
| t=50 | |
| function main(params) { | |
| return [ | |
| subtract( | |
| extrudeLinear({height:t},geom2.fromPoints([[0,0],[l1,0],[l2,h],[0,h]])), | |
| translate([1,1,1], | |
| extrudeLinear({height:t-1},geom2.fromPoints([[0,0],[l1-2,0],[l2-2,h-1],[0,h-1]]))) | |
| ) | |
| ] | |
| } | |
| module.exports = { main } |
Author
Author
Recorded with wf-recorder -g "$(slurp)" from OctoPrint scene camera view:
Author
recording.mp4
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

View:

https://jscad.app/#https://gist.githubusercontent.com/Hermann-SW/85d31095bbae8ceb40c60c71b90042a4/raw/43be8088bc5dd7579df06f551c8afc8e206d3f4f/coi.js