I’m changing a shape bigger than default radius of 1 but doesn’t seem to work; this is what I’m trying:
void glutSolidIcosahedron(GLdouble size);
glutSolidIcosahedron(9);
It’s ok I did it (shown below):
glScalef(9.0,9.0,9.0);
glutSolidIcosahedron();
Is there another way?
glutSolidIcosahedron() creates an icosahedron centered at the origin and with radius
1.0. It does not take any parameters to adjust it’s size or scale. So yes, the only way to resize it is to useglScalefor some other method for adjusting the current matrix.