Class: MiniScad::Projection
- Inherits:
-
Object
- Object
- MiniScad::Projection
- Includes:
- Transform
- Defined in:
- lib/mini_scad.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ Projection
constructor
A new instance of Projection.
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 |