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
#*, #+, #-, #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
#height ⇒ Object (readonly)
Returns the value of attribute height.
347 348 349 |
# File 'lib/rcad.rb', line 347 def height @height end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
347 348 349 |
# File 'lib/rcad.rb', line 347 def profile @profile end |