Class: Disp3D::NodeTeaPod

Inherits:
NodeLeaf show all
Defined in:
lib/node/node_tea_pod.rb

Instance Attribute Summary

Attributes inherited from Node

#instance_id, #name, #parents

Instance Method Summary collapse

Methods inherited from NodeLeaf

#draw, #update_for_display

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

#boxObject



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