Class: LinearExtrusion
Direct Known Subclasses
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
Instance Method Summary collapse
-
#initialize(profile, height, twist = 0) ⇒ LinearExtrusion
constructor
A new instance of LinearExtrusion.
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
#height ⇒ Object (readonly)
Returns the value of attribute height.
559 560 561 |
# File 'lib/rcad.rb', line 559 def height @height end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
559 560 561 |
# File 'lib/rcad.rb', line 559 def profile @profile end |