+ glRotatef (-90, 0, 0, 1);
+ glScalef (diameter/length, 1, diameter/length);
+
+ /* extend the endpoints of the tube by the cap size in both directions */
+ if (cap_size != 0)
+ {
+ GLfloat c = cap_size/length;
+ glTranslatef (0, -c, 0);
+ glScalef (1, 1+c+c, 1);
+ }
+
+ unit_tube (wire);
+ glPopMatrix();