Class: MiniScad::Sphere
Instance Method Summary collapse
-
#initialize(r) ⇒ Sphere
constructor
A new instance of Sphere.
Methods included from Transform
#&, #+, #-, #color, #hull, #mirror, #projection, #render, #rotate, #scale, #translate, #|
Constructor Details
#initialize(r) ⇒ Sphere
Returns a new instance of Sphere.
241 242 243 |
# File 'lib/mini_scad.rb', line 241 def initialize(r) @renderer = -> { "sphere(r=#{r});" } end |