plaese help!!
can any one of you make this java code compiled..
pls help me...
import java.io.*;
import java.awt.*;
import java.awt.Graphics.*;
public class Solid
{
private int order[],min,offscreen;
public int nface,i,k,f,j;
public Array faces,rotPts;
Solid (InputStream is, int wid, int heig, int ncolour_)
throws IOException
{
super(is, wid, heig, ncolour_);
order = new int[nface];
/* - - - - - - - - - - - - - - - */
public void Draw(Graphics offscreen,int x0,int y0,double z) {
CalcScrPts((double)x0,(double)y0,z);
/* .. put in a list all the faces that are point up.. */
i=0;
for (f=0;f<nface;f++)
{
if (faceUp(f)) {
order[i] = f;
i++;
}
/* .. find the face farthest away and draw it 'i' times .. */
for (j=0;j<i;j++) {
min = j;
for (k=j+1;k<i;k++)
if (rotPts[order[k]+nface][2]<rotPts[order[min]+nface][2])
min =k;
if (min !=j) {
f = order[min];
order[min] = order[j];
} else f = order[j];
for (k=1;k<faces[f][0];k++)
DrawPoly(offscreen,faces[f][k]);
}
}
}
Search from various English teachers...
Answers · 1
0
haa cheptaaru free ga !!!!!
Still haven’t found your answers?
Write down your questions and let the native speakers help you!
Don’t miss out on the opportunity to learn a language from the comfort of your own home. Browse our selection of experienced language tutors and enroll in your first lesson now!
Start Learning Today
