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
#*, #+, #-, #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(points, faces) ⇒ Polyhedron
Returns a new instance of Polyhedron.
308 309 310 311 |
# File 'lib/rcad.rb', line 308 def initialize(points, faces) @points = points @faces = faces end |
Instance Attribute Details
#faces ⇒ Object
Returns the value of attribute faces.
306 307 308 |
# File 'lib/rcad.rb', line 306 def faces @faces end |
#points ⇒ Object
Returns the value of attribute points.
306 307 308 |
# File 'lib/rcad.rb', line 306 def points @points end |