Skip to content

Instantly share code, notes, and snippets.

@Hermann-SW
Created April 27, 2025 14:56

Revisions

  1. Hermann-SW created this gist Apr 27, 2025.
    15 changes: 15 additions & 0 deletions E.jscad
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    "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 }