Skip to content

Instantly share code, notes, and snippets.

@makevoid
Last active December 30, 2015 16:59
Show Gist options
  • Select an option

  • Save makevoid/7857989 to your computer and use it in GitHub Desktop.

Select an option

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.
# 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