Class: MiniScad::Hull

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(&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