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