Class: MiniScad::Projection

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) ⇒ Projection

Returns a new instance of Projection.



129
130
131
# File 'lib/mini_scad.rb', line 129

def initialize(&block)
  @renderer = -> { "projection() { #{block.().render} };" }
end