Class: RuPov::Objects::FinitePatchPrimitives::SmoothTriangle
- Defined in:
- lib/rupov.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(corner1, normal1, corner2, normal2, corner3, normal3) {|_self| ... } ⇒ SmoothTriangle
constructor
A new instance of SmoothTriangle.
Methods inherited from Base
Constructor Details
#initialize(corner1, normal1, corner2, normal2, corner3, normal3) {|_self| ... } ⇒ SmoothTriangle
Returns a new instance of SmoothTriangle.
217 218 219 220 221 222 223 224 |
# File 'lib/rupov.rb', line 217 def initialize( corner1, normal1, corner2, normal2, corner3, normal3 ) super( 'smooth_triangle' ) self << Methods::MultiValue.new( [ corner1, normal1, corner2, normal2, corner3, normal3 ] ) yield(self) if block_given? and self.class == SmoothTriangle end |