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

#*, #+, #-, #align, #back, #bbox, #bottom, #center, #cx, #cy, #cz, #extrude, #front, #left, #maxx, #maxy, #maxz, #minx, #miny, #minz, #mirror, #mirror_x, #mirror_y, #mirror_z, #move, #move_x, #move_y, #move_z, #render, #revolve, #right, #rot_x, #rot_y, #rot_z, #rotate, #scale, #scale_x, #scale_y, #scale_z, #top, #transform, #xcenter, #xsize, #ycenter, #ysize, #zcenter, #zsize, #~@

Constructor Details

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

Returns a new instance of LinearExtrusion.



561
562
563
564
565
# File 'lib/rcad.rb', line 561

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

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



559
560
561
# File 'lib/rcad.rb', line 559

def height
  @height
end

#profileObject (readonly)

Returns the value of attribute profile.



559
560
561
# File 'lib/rcad.rb', line 559

def profile
  @profile
end