Class: CrystalScad::LasercutSheet

Inherits:
Assembly show all
Defined in:
lib/crystalscad/Assembly.rb

Instance Attribute Summary

Attributes inherited from Assembly

#color, #hardware, #skip, #transformations, #x, #y, #z

Attributes inherited from Primitive

#children

Attributes inherited from CrystalScadObject

#args, #transformations

Instance Method Summary collapse

Methods inherited from Assembly

#*, #+, #-, #add_to_bom, #colorize, get_skip, get_views, #initialize, #method_missing, #output, #scad_output, #show, #show_hardware, skip, #threads, #transform, view, #walk_tree

Methods inherited from Primitive

#mirror, #rotate, #rotate_around, #scale, #transform, #translate, #union

Methods inherited from CrystalScadObject

#initialize, #method_missing, #save, #to_rubyscad, #walk_tree, #walk_tree_classes

Constructor Details

This class inherits a constructor from CrystalScad::Assembly

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CrystalScad::Assembly

Instance Method Details

#descriptionObject



171
172
173
# File 'lib/crystalscad/Assembly.rb', line 171

def description
  "Laser cut sheet #{self.class.to_s}"
end

#part(show) ⇒ Object



175
176
177
# File 'lib/crystalscad/Assembly.rb', line 175

def part(show)
	square([@x,@y])
end