Next: , Previous: Icosahedron Data Members, Up: Icosahedron


37.2.3.2 Constructors and Setting Functions
— Default constructor: void Icosahedron (void)

Creates an empty Icosahedron.

— Constructor: void Icosahedron (const Point& p, const real diameter_of_triangle, [real angle_x = 0, [real angle_y = 0, [real angle_z = 0]]])

Creates an Icosahedron with its center at the origin, where the triangular faces have enclosing circles of diameter diameter_of_triangle. If any of angle_x, angle_y, or angle_z is non-zero, the Icosahedron is rotated by the amounts specified around the corresponding axes. Finally, if p is not the origin, the Icosahedron is shifted such that center comes to lie at p.

          Icosahedron i(origin, 3, 0, 10);
          i.draw();


[Figure 195. Not displayed.]

Fig. 195.

          i.filldraw();


[Figure 196. Not displayed.]

Fig. 196.