Class: RuPov::Objects::FiniteSolidPrimitives::Prism
- Defined in:
- lib/rupov.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(height1, height2, points, splineType = "linear_spline", sweepType = "linear_sweep", open = false, sturm = false) {|_self| ... } ⇒ Prism
constructor
A new instance of Prism.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(height1, height2, points, splineType = "linear_spline", sweepType = "linear_sweep", open = false, sturm = false) {|_self| ... } ⇒ Prism
Returns a new instance of Prism.
97 98 99 100 101 102 103 |
# File 'lib/rupov.rb', line 97 def initialize( height1, height2, points, splineType = "linear_spline", sweepType = "linear_sweep", open = false, sturm = false ) super( 'prism' ) self << Methods::MultiValue.new( [height1,height2,points.length]+points, splineType+" "+sweepType ) @open = open @sturm = sturm yield(self) if block_given? and self.class == Prism end |
Instance Method Details
#to_s ⇒ Object
104 105 106 107 108 109 110 111 |
# File 'lib/rupov.rb', line 104 def to_s self << "open" if @open self << "sturm" if @sturm result = super() self.pop() if @sturm self.pop() if @open result end |