Class: LinearExtrusion

Inherits:
Shape
  • Object
show all
Defined in:
lib/rcad.rb

Direct Known Subclasses

RegularPrism

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Shape

#*, #+, #-, #bbox, #extrude, #max_x, #max_y, #max_z, #min_x, #min_y, #min_z, #move_x, #move_y, #move_z, #render, #revolve, #rot_x, #rot_y, #rot_z, #scale_x, #scale_y, #scale_z, #x_size, #y_size, #z_size, #~@

Constructor Details

#initialize(profile, height, twist = 0) ⇒ LinearExtrusion



337
338
339
340
341
# File 'lib/rcad.rb', line 337

def initialize(profile, height, twist=0)
  @profile = profile
  @height = height
  @twist = twist
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



335
336
337
# File 'lib/rcad.rb', line 335

def height
  @height
end

#profileObject (readonly)

Returns the value of attribute profile.



335
336
337
# File 'lib/rcad.rb', line 335

def profile
  @profile
end