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();
|
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 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);
|