Last active
December 30, 2015 16:59
-
-
Save makevoid/7857989 to your computer and use it in GitHub Desktop.
Triangular Prism lampshade made with oozby and ruby !
pic: https://www.facebook.com/photo.php?fbid=409589889144134&set=a.377251029044687.1073741846.359476797488777&type=3&theater I use the .rb extension just for github syntax higlighting, otherwise I usually use .ooz.
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
| # apt-get install openscad # or download it from opendscad.org | |
| # gem install oozby | |
| # oozby compile trilamp.ooz.rb; openscad -o trilamp.stl trilamp.ooz.scad | |
| r = 54 | |
| h = 150 | |
| depth = 1.3 | |
| rotate(x: 180) do | |
| render do | |
| difference do | |
| prism(r: r+depth, h: h+depth) | |
| prism(r: r, h: h) | |
| cylinder(d: 33, h: h+20) | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment