Creates a
Tetrahedronwith its center at the origin. The faces have enclosing circles of diameter diameter_of_triangle. If any of angle_x, angle_y, or angle_z is non-zero, theTetrahedronis rotated by the amounts specified around the corresponding axes. Finally, if p is not the origin, theTetrahedronis shifted such thatcentercomes to lie at p.The center of a
Tetrahedronis the intersection of the line segments connecting the vertices with the centers of the opposite faces.Tetrahedron t(origin, 3); t.draw();
![]()
Fig. 187.
Point P(1, 0, 1); Tetrahedron t(P, 2.75, 30, 32.5, 20); t.draw();
![]()
Fig. 188.