Class: Disp3D::NodeWorkplane

Inherits:
NodeLeaf show all
Defined in:
lib/node/node_workplane.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, name = nil) ⇒ NodeWorkplane

Returns a new instance of NodeWorkplane.



8
9
10
11
12
13
14
# File 'lib/node/node_workplane.rb', line 8

def initialize(geom, name = nil)
  Util3D.check_arg_type(Symbol, name, true)
  Util3D.check_arg_type(GMath3D::Plane, geom, false)
  super
  @length = 1000
  @grid = nil
end

Instance Method Details

#boxObject



16
17
18
# File 'lib/node/node_workplane.rb', line 16

def box
  return Box.new(@geom.base_point)
end