# File Geodesic.rb, line 234 def initialize( frequency = 1, primitive = :octahedron, radius = 1 ) raise "The Geodesic class does not support the primitive type '#{primitive}'" unless PRIMITIVES[primitive] @faces = PRIMITIVES[primitive].dup if frequency > 0 @faces.collect!{ |face| face.subdivide_by( frequency ) }.flatten! end @radius = 1 self.radius = radius end