Class: Polyhedron

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#facesObject

Returns the value of attribute faces.



306
307
308
# File 'lib/rcad.rb', line 306

def faces
  @faces
end

#pointsObject

Returns the value of attribute points.



306
307
308
# File 'lib/rcad.rb', line 306

def points
  @points
end