Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. for (i = 0; (i + 1) * Alfa <= 90.0; i++)
  2. {
  3. for (j = 0.0; (j + 1) * oneH <= h; j++) {
  4. glNormal3f(cos(deg2rad((i)*Alfa)), 0.0, sin(deg2rad((i)*Alfa)));
  5. if (j == 0.0) {
  6. glVertex3f(r * cos(deg2rad(i * Alfa)), j * oneH, r * sin(deg2rad(i * Alfa)));
  7. glVertex3f(r * cos(deg2rad(i * Alfa)), (j + 1) * oneH, r * sin(deg2rad(i * Alfa)));
  8. }
  9. glVertex3f(r * cos(deg2rad((i + 1) * Alfa)), j * oneH, r * sin(deg2rad((i + 1) * Alfa)));
  10. glVertex3f(r * cos(deg2rad((i + 1) * Alfa)), (j + 1) * oneH, r * sin(deg2rad((i +
  11. 1) * Alfa)));
  12.  
  13. }
  14. j = 0.0;
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement