Skip to content

Instantly share code, notes, and snippets.

@Hermann-SW
Last active December 15, 2024 09:52
Show Gist options
  • Save Hermann-SW/85d31095bbae8ceb40c60c71b90042a4 to your computer and use it in GitHub Desktop.
Save Hermann-SW/85d31095bbae8ceb40c60c71b90042a4 to your computer and use it in GitHub Desktop.
cutlery organizer insert JSCAD file
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 }
@Hermann-SW
Copy link
Author

Hermann-SW commented Dec 15, 2024

Recorded with wf-recorder -g "$(slurp)" from OctoPrint scene camera view:

@Hermann-SW
Copy link
Author

recording.mp4

@Hermann-SW
Copy link
Author

Small test print for revision 2 slight corrections:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment