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