Re: glut primitive object scaling
Posted by Wade Walker on Mar 18, 2011; 4:07pm
URL: https://forum.jogamp.org/glut-primitive-object-scaling-tp2698207p2698483.html
The sphere and cube are centered at (0, 0, 0), so scaling them will grow them in all directions. You can get this same effect for the cylinder by translating its center to the origin (translate the whole thing by -height/2 in the z direction). After this translation, scaling it will work like it does for the sphere and cube.