Class: RuPov::Objects::FiniteSolidPrimitives::Lathe
- Defined in:
- lib/rupov.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(points, splineType = "linear_spline", sturm = false) {|_self| ... } ⇒ Lathe
constructor
A new instance of Lathe.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(points, splineType = "linear_spline", sturm = false) {|_self| ... } ⇒ Lathe
Returns a new instance of Lathe.
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_s ⇒ Object
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 |