Class: Polyhedron

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(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

#facesObject

Returns the value of attribute faces.



530
531
532
# File 'lib/rcad.rb', line 530

def faces
  @faces
end

#pointsObject

Returns the value of attribute points.



530
531
532
# File 'lib/rcad.rb', line 530

def points
  @points
end