Class: RuPov::Objects::FinitePatchPrimitives::SmoothTriangle

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

#<<, #to_s

Constructor Details

#initialize(corner1, normal1, corner2, normal2, corner3, normal3) {|_self| ... } ⇒ SmoothTriangle

Returns a new instance of SmoothTriangle.

Yields:

  • (_self)

Yield Parameters:



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