Class: Polyhedron
Instance Attribute Summary collapse
-
#faces ⇒ Object
Returns the value of attribute faces.
-
#points ⇒ Object
Returns the value of attribute points.
Instance Method Summary collapse
-
#initialize(points, faces) ⇒ Polyhedron
constructor
A new instance of Polyhedron.
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(points, faces) ⇒ Polyhedron
Returns a new instance of Polyhedron.
532 533 534 535 |
# File 'lib/rcad.rb', line 532 def initialize(points, faces) @points = points @faces = faces end |
Instance Attribute Details
#faces ⇒ Object
Returns the value of attribute faces.
530 531 532 |
# File 'lib/rcad.rb', line 530 def faces @faces end |
#points ⇒ Object
Returns the value of attribute points.
530 531 532 |
# File 'lib/rcad.rb', line 530 def points @points end |