Skip to content

Instantly share code, notes, and snippets.

@Hermann-SW
Created April 27, 2025 14:56
Show Gist options
  • Save Hermann-SW/05a969a87199c6b9ed48d9b7f856176c to your computer and use it in GitHub Desktop.
Save Hermann-SW/05a969a87199c6b9ed48d9b7f856176c to your computer and use it in GitHub Desktop.
part to join with a 2GPU Riser card model
"use strict"
const jscad = require('@jscad/modeling')
const { translate, rotateZ } = jscad.transforms
const { cuboid, sphere } = jscad.primitives
function main() {
return rotateZ(Math.PI/2,[
cuboid({size: [70,10,10]}),
translate([0,50,0], cuboid({size: [70,10,10]})),
translate([0,100,0], cuboid({size: [70,10,10]})),
translate([30,50,0], cuboid({size: [10,110,10]})),
])
}
module.exports = { main }
@Hermann-SW
Copy link
Author

Hermann-SW commented Apr 27, 2025

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