Created
October 10, 2016 16:30
-
-
Save nataliefreed/7837250bce29adbbd6fb7e245ac91161 to your computer and use it in GitHub Desktop.
This file contains 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
// title : OpenJSCAD Example | |
// author : Natalie Freed | |
function getParameterDefinitions() { | |
return [{ name: 'heightOfBox1', type: 'float', initial: 6, caption: "Height of box 1:" }]; | |
} | |
function main(params) { | |
var box1 = cube({size: [1,2,params.heightOfBox1]}); | |
var box2 = cube({size: [4,3,2]}); | |
var bothBoxes = union(box1, box2); | |
return bothBoxes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment