Class: Revolution

Inherits:
Shape
  • Object
show all
Defined in:
lib/rcad.rb

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, angle = nil) ⇒ Revolution

Returns a new instance of Revolution.



572
573
574
575
# File 'lib/rcad.rb', line 572

def initialize(profile, angle=nil)
  @profile = profile
  @angle = angle
end

Instance Attribute Details

#angleObject (readonly)

Returns the value of attribute angle.



570
571
572
# File 'lib/rcad.rb', line 570

def angle
  @angle
end

#profileObject (readonly)

Returns the value of attribute profile.



570
571
572
# File 'lib/rcad.rb', line 570

def profile
  @profile
end