Class: MiniScad::Scale
Instance Method Summary collapse
-
#initialize(x, y, z, &block) ⇒ Scale
constructor
A new instance of Scale.
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 |