Class: Disp3D::NodeWorkplane
- Defined in:
- lib/node/node_workplane.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #box ⇒ Object
-
#initialize(geom, name = nil) ⇒ NodeWorkplane
constructor
A new instance of NodeWorkplane.
Methods inherited from NodeLeaf
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
#box ⇒ Object
16 17 18 |
# File 'lib/node/node_workplane.rb', line 16 def box return Box.new(@geom.base_point) end |