Node:Dodecahedron Net, Previous:Dodecahedron Constructors and Setting Functions, Up:Dodecahedron



Net

vector<Reg_Polygon*> get_net (const real pentagon_diameter, [bool do_half = false]) Static function
Returns the net, i.e., the two-dimensional pattern of pentagons that can be folded into a model of a dodecahedron. The net lies in the x-z plane. The pentagons have enclosing circles of diameter pentagon_diameter. The center of the center pentagon of the first half of the net is at the origin. If the argument do_half is true, only the first half of the net is created. This is used in the non-default constructor. See Polyhedron Reference; Regular Platonic Polyhedra; Dodecahedron; Constructors and Setting Functions.
          vector<Reg_Polygon*> vrp = Dodecahedron::get_net(1);
          for(vector<Reg_Polygon*>::iterator iter = vrp.begin();
              iter != vrp.end(); ++iter)
                 (**iter).draw();
          


[Figure 193. Not displayed.]

Fig. 193.

void draw_net (const real pentagon_diameter, [bool portrait = true, [bool make_tabs = true]]) Static function
Draws the net for a Dodecahedron in the x-z plane. The pentagons have enclosing circles of diameter pentagon_diameter. The origin is used as the center of the middle pentagon of the first half of the net. The centers of the pentagons are numbered.

If the argument portrait is true (the default), the net is arranged for printing in portrait format. If it's false, it's arranged for printing in landscape format.

The argument make_tabs currently has no effect. When I get around to programming this, it will be used for specifying whether tabs for gluing and/or sewing a cardboard model should be drawn, too.

          Dodecahedron::draw_net(1, false);
          


[Figure 194. Not displayed.]

Fig. 194.