Class: MiniScad::Cube

Inherits:
Object
  • Object
show all
Includes:
Transform
Defined in:
lib/mini_scad.rb

Instance Method Summary collapse

Methods included from Transform

#&, #+, #-, #color, #hull, #mirror, #projection, #render, #rotate, #scale, #translate, #|

Constructor Details

#initialize(x, y, z, center: false) ⇒ Cube

Returns a new instance of Cube.



231
232
233
234
235
# File 'lib/mini_scad.rb', line 231

def initialize(x, y, z, center: false)
  @renderer = -> do
    "cube([#{x}, #{y}, #{z}], center=#{center});"
  end
end