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, #mirror_x, #mirror_y, #mirror_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

Returns a new instance of LinearExtrusion.



349
350
351
352
353
# File 'lib/rcad.rb', line 349

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

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



347
348
349
# File 'lib/rcad.rb', line 347

def height
  @height
end

#profileObject (readonly)

Returns the value of attribute profile.



347
348
349
# File 'lib/rcad.rb', line 347

def profile
  @profile
end