Lines Matching defs:teeth
131 * @param outer_radius radius at center of teeth
133 * @param teeth number of teeth
140 GLint teeth, GLfloat tooth_depth)
161 da = 2.0 * M_PI / teeth / 4.0;
164 gear->nstrips = STRIPS_PER_TOOTH * teeth;
168 gear->vertices = calloc(VERTICES_PER_TOOTH * teeth, sizeof(*gear->vertices));
171 for (i = 0; i < teeth; i++) {
173 sincos(i * 2.0 * M_PI / teeth, &s[0], &c[0]);
174 sincos(i * 2.0 * M_PI / teeth + da, &s[1], &c[1]);
175 sincos(i * 2.0 * M_PI / teeth + da * 2, &s[2], &c[2]);
176 sincos(i * 2.0 * M_PI / teeth + da * 3, &s[3], &c[3]);
177 sincos(i * 2.0 * M_PI / teeth + da * 4, &s[4], &c[4]);