class CrystalScad::Render

Public Class Methods

new(object, attributes) click to toggle source
Calls superclass method
# File lib/crystalscad/CrystalScad.rb, line 452
def initialize(object, attributes)
        @operation = "render"
        @children = [object]
        super(object, attributes)
end

Public Instance Methods

to_rubyscad() click to toggle source
# File lib/crystalscad/CrystalScad.rb, line 458
def to_rubyscad       
  layer = ""
  if @layer
    layer = ",layer=\"#{@layer}\""
  end
        res = ""                     
        self.children.map{|l| res += l.walk_tree}
        res += RubyScadBridge.new.render
        res          
end