Class: Disp3D::NodePolylines

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

Instance Attribute Summary

Attributes inherited from Node

#instance_id, #name, #parents

Instance Method Summary collapse

Methods inherited from NodeLeaf

#box, #draw, #update_for_display

Methods inherited from Node

#ancestors, #post_draw, #pre_draw

Constructor Details

#initialize(geom, name = nil) ⇒ NodePolylines

Returns a new instance of NodePolylines.



7
8
9
10
11
12
# File 'lib/node/node_polylines.rb', line 7

def initialize(geom, name = nil)
  Util3D.check_arg_type(Symbol, name, true)
  Util3D.check_arg_type(GMath3D::Polyline, geom, false, true)
  super
  @width = 1.0
end