void F22( float width, float length, float height, float altitude, float r, float g, float b,
float posx, float posz, float ang )
{
float x, y, z, dx, dz, xmin, ymin, zmin, xmax, zmax, ymax, colorV[4];
fprintf(ofile," JetT%d\n", jet_cnt );
colorV[0] = r; colorV[1] = g; colorV[2] = b; colorV[3] = 1.0;
colorV[0] = 0.3*r; colorV[1] = 0.3*g; colorV[2] = 0.3*b; colorV[3] = 1.0;
xmin = 0.0; xmax = 2.0*length;
ymin = 0.0; ymax = 2.0*height;
zmin = 0.0; zmax = 2.0*width;
/* Nose */
sendvertex( colorV, 0.0, 2.0, 0.0); sendvertex( colorV, 0.0, 4.0, 10.0); sendvertex( colorV, 2.0, 2.0, 10.0);
sendvertex( colorV, 0.0, 2.0, 0.0); sendvertex( colorV, 2.0, 2.0, 12.0); sendvertex( colorV, 0.0, 0.0, 12.0);
sendvertex( colorV, 0.0, 2.0, 0.0); sendvertex( colorV, -2.0, 2.0, 10.0); sendvertex( colorV, 0.0, 4.0, 10.0);
sendvertex( colorV, 0.0, 2.0, 0.0); sendvertex( colorV, 0.0, 0.0, 12.0); sendvertex( colorV, -2.0, 2.0, 12.0);
/* Cockpit */
sendvertex( colorV, 0.0, 2.0, 20.0); sendvertex( colorV, 2.0, 2.0, 10.0); sendvertex( colorV, 0.0, 4.0, 10.0);
sendvertex( colorV, -2.0, 2.0, 10.0); sendvertex( colorV, 0.0, 2.0, 20.0); sendvertex( colorV, 0.0, 4.0, 10.0);
/* Fusilage */
sendvertex( colorV, 4.0, 2.0, 12.0); sendvertex( colorV, 0.0, 2.0, 8.0); sendvertex( colorV, 0.0, 3.0, 24.0);
sendvertex( colorV, 0.0, 2.0, 8.0); sendvertex( colorV, -4.0, 2.0, 12.0); sendvertex( colorV, 0.0, 3.0, 24.0);
sendvertex( colorV, 4.0, 2.0, 37.0); sendvertex( colorV, 4.0, 2.0, 12.0); sendvertex( colorV, 0.0, 3.0, 24.0);
sendvertex( colorV, -4.0, 2.0, 12.0); sendvertex( colorV, -4.0, 2.0, 37.0); sendvertex( colorV, 0.0, 3.0, 24.0);
sendvertex( colorV, -4.0, 2.0, 37.0); sendvertex( colorV, 4.0, 2.0, 37.0); sendvertex( colorV, 0.0, 3.0, 24.0);
/* Wings */
sendvertex( colorV, 14.0, 2.0, 28.0); sendvertex( colorV, 4.0, 2.0, 17.0); sendvertex( colorV, 14.0, 2.0, 32.0);
sendvertex( colorV, 4.0, 2.0, 17.0); sendvertex( colorV, 4.0, 2.0, 34.0); sendvertex( colorV, 14.0, 2.0, 32.0);
sendvertex( colorV, -4.0, 2.0, 17.0); sendvertex( colorV, -14.0, 2.0, 28.0); sendvertex( colorV, -14.0, 2.0, 32.0);
sendvertex( colorV, -4.0, 2.0, 34.0); sendvertex( colorV, -4.0, 2.0, 17.0); sendvertex( colorV, -14.0, 2.0, 32.0);
sendvertex( colorV, 4.0, 2.0, 17.0); sendvertex( colorV, 14.0, 2.0, 28.0); sendvertex( colorV, 14.0, 2.0, 32.0);
sendvertex( colorV, 4.0, 2.0, 34.0); sendvertex( colorV, 4.0, 2.0, 17.0); sendvertex( colorV, 14.0, 2.0, 32.0);
sendvertex( colorV, -14.0, 2.0, 28.0); sendvertex( colorV, -4.0, 2.0, 17.0); sendvertex( colorV, -14.0, 2.0, 32.0);
sendvertex( colorV, -4.0, 2.0, 17.0); sendvertex( colorV, -4.0, 2.0, 34.0); sendvertex( colorV, -14.0, 2.0, 32.0);
/* Flaps */
sendvertex( colorV, 4.0, 2.0, 32.0); sendvertex( colorV, 4.0, 2.0, 41.0); sendvertex( colorV, 10.0, 2.0, 38.0);
sendvertex( colorV, 4.0, 2.0, 41.0); sendvertex( colorV, 10.0, 2.0, 40.0); sendvertex( colorV, 10.0, 2.0, 38.0);
sendvertex( colorV, -4.0, 2.0, 41.0); sendvertex( colorV, -4.0, 2.0, 32.0); sendvertex( colorV, -10.0, 2.0, 38.0);
sendvertex( colorV, -10.0, 2.0, 40.0); sendvertex( colorV, -4.0, 2.0, 41.0); sendvertex( colorV, -10.0, 2.0, 38.0);
/* Rudders */
sendvertex( colorV, 3.0, 2.0, 25.0); sendvertex( colorV, 7.0, 10.0, 28.0); sendvertex( colorV, 7.0, 10.0, 31.0);
sendvertex( colorV, 3.0, 2.0, 25.0); sendvertex( colorV, 7.0, 10.0, 31.0); sendvertex( colorV, 2.0, 2.0, 36.0);
sendvertex( colorV, -3.0, 2.0, 25.0); sendvertex( colorV, -7.0, 10.0, 28.0); sendvertex( colorV, -7.0, 10.0, 31.0);
sendvertex( colorV, -3.0, 2.0, 25.0); sendvertex( colorV, -7.0, 10.0, 31.0); sendvertex( colorV, -2.0, 2.0, 36.0);
sendvertex( colorV, 7.0, 10.0, 28.0); sendvertex( colorV, 3.0, 2.0, 25.0); sendvertex( colorV, 7.0, 10.0, 31.0);
sendvertex( colorV, 7.0, 10.0, 31.0); sendvertex( colorV, 3.0, 2.0, 25.0); sendvertex( colorV, 2.0, 2.0, 36.0);
sendvertex( colorV, -7.0, 10.0, 28.0); sendvertex( colorV, -3.0, 2.0, 25.0); sendvertex( colorV, -7.0, 10.0, 31.0);
sendvertex( colorV, -7.0, 10.0, 31.0); sendvertex( colorV, -3.0, 2.0, 25.0); sendvertex( colorV, -2.0, 2.0, 36.0);
/* Bottom */
sendvertex( colorV, -2.0, 0.0, 12.0); sendvertex( colorV, 2.0, 0.0, 12.0); sendvertex( colorV, -3.0, 0.0, 13.0);
sendvertex( colorV, 2.0, 0.0, 12.0); sendvertex( colorV, 3.0, 0.0, 13.0); sendvertex( colorV, -3.0, 0.0, 13.0);
sendvertex( colorV, -3.0, 0.0, 13.0); sendvertex( colorV, 3.0, 0.0, 13.0); sendvertex( colorV, 3.0, 0.0, 32.0);
sendvertex( colorV, -3.0, 0.0, 32.0); sendvertex( colorV, -3.0, 0.0, 13.0); sendvertex( colorV, 3.0, 0.0, 32.0);
sendvertex( colorV, 3.0, 0.0, 32.0); sendvertex( colorV, 3.0, 2.0, 37.0); sendvertex( colorV, -3.0, 0.0, 32.0);
sendvertex( colorV, 3.0, 2.0, 37.0); sendvertex( colorV, -3.0, 2.0, 37.0); sendvertex( colorV, -3.0, 0.0, 32.0);
sendvertex( colorV, 3.0, 0.0, 32.0); sendvertex( colorV, 4.0, 2.0, 32.0); sendvertex( colorV, 3.0, 2.0, 37.0);
sendvertex( colorV, -4.0, 2.0, 32.0); sendvertex( colorV, -3.0, 0.0, 32.0); sendvertex( colorV, -3.0, 2.0, 37.0);
/* Sides */
sendvertex( colorV, 3.0, 0.0, 13.0); sendvertex( colorV, 4.0, 2.0, 12.0); sendvertex( colorV, 4.0, 2.0, 32.0);
sendvertex( colorV, 3.0, 0.0, 32.0); sendvertex( colorV, 3.0, 0.0, 13.0); sendvertex( colorV, 4.0, 2.0, 32.0);
sendvertex( colorV, -4.0, 2.0, 12.0); sendvertex( colorV, -3.0, 0.0, 13.0); sendvertex( colorV, -4.0, 2.0, 32.0);
sendvertex( colorV, -3.0, 0.0, 13.0); sendvertex( colorV, -3.0, 0.0, 32.0); sendvertex( colorV, -4.0, 2.0, 32.0);
sendvertex( colorV, 2.0, 2.0, 10.0); sendvertex( colorV, 2.0, 0.0, 12.0); sendvertex( colorV, -2.0, 2.0, 10.0);
sendvertex( colorV, -2.0, 0.0, 12.0); sendvertex( colorV, -2.0, 2.0, 10.0); sendvertex( colorV, 2.0, 0.0, 12.0);
/* Air intake */
colorV[0] = 0.01*r; colorV[1] = 0.01*g; colorV[2] = 0.01*b; colorV[3] = 1.0;
sendvertex( colorV, 2.0, 0.0, 12.0); sendvertex( colorV, 2.0, 2.0, 10.0); sendvertex( colorV, 4.0, 2.0, 12.0);
sendvertex( colorV, 3.0, 0.0, 13.0); sendvertex( colorV, 2.0, 0.0, 12.0); sendvertex( colorV, 4.0, 2.0, 12.0);
sendvertex( colorV, -2.0, 2.0, 10.0); sendvertex( colorV, -2.0, 0.0, 12.0); sendvertex( colorV, -4.0, 2.0, 12.0);
sendvertex( colorV, -2.0, 0.0, 12.0); sendvertex( colorV, -3.0, 0.0, 13.0); sendvertex( colorV, -4.0, 2.0, 12.0);
fprintf(ofile,"\n");
fprintf(ofile," Jet_%d JetT%d %g %g %g 0 %g 0\n", jet_cnt, jet_cnt++, posx, altitude, posz, ang);
}