Node: Icosahedron Constructors and Setting Functions, Next: , Previous: Icosahedron Data Members, Up: Icosahedron

Constructors and Setting Functions

void Icosahedron (void) Default constructor
Creates an empty Icosahedron.

void Icosahedron (const Point& p, const real diameter_of_triangle, [real angle_x = 0, [real angle_y = 0, [real angle_z = 0]]]) Constructor
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);

[Figure 195. Not displayed.]

Fig. 195.


[Figure 196. Not displayed.]

Fig. 196.