Class: RuPov::Objects::FiniteSolidPrimitives::Lathe

Inherits:
Base
  • Object
show all
Defined in:
lib/rupov.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#<<

Constructor Details

#initialize(points, splineType = "linear_spline", sturm = false) {|_self| ... } ⇒ Lathe

Returns a new instance of Lathe.

Yields:

  • (_self)

Yield Parameters:



82
83
84
85
86
87
# File 'lib/rupov.rb', line 82

def initialize( points, splineType = "linear_spline", sturm = false )
    super( 'lathe' )
    self << Methods::MultiValue.new( [points.length]+points, splineType )
    @sturm = sturm
    yield(self) if block_given? and self.class == Lathe
end

Instance Method Details

#to_sObject



88
89
90
91
92
93
# File 'lib/rupov.rb', line 88

def to_s
    self << "sturm" if @sturm
    result = super()
    self.pop() if @sturm
    result
end