Class: MiniScad::Scale

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, &block) ⇒ Scale

Returns a new instance of Scale.



167
168
169
170
171
# File 'lib/mini_scad.rb', line 167

def initialize(x, y, z, &block)
  @renderer = -> do
    "scale([#{x}, #{y}, #{z}]) { #{block.().render} };"
  end
end