Class: Disp3D::NodeTeaPod
- Defined in:
- lib/node/node_tea_pod.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #box ⇒ Object
-
#initialize(geom = nil, name = nil) ⇒ NodeTeaPod
constructor
A new instance of NodeTeaPod.
Methods inherited from NodeLeaf
Methods inherited from Node
#ancestors, #post_draw, #pre_draw
Constructor Details
#initialize(geom = nil, name = nil) ⇒ NodeTeaPod
Returns a new instance of NodeTeaPod.
7 8 9 10 |
# File 'lib/node/node_tea_pod.rb', line 7 def initialize(geom=nil, name=nil) super @size = 1.0 end |
Instance Method Details
#box ⇒ Object
12 13 14 |
# File 'lib/node/node_tea_pod.rb', line 12 def box return Box.new(Vector3.new(-@size, -@size, -@size),Vector3.new(@size, @size, @size)) end |