// shape3.java plot 3d data Utah Graphics to shape3.dat // javac -cp . shape3.java // ___ java -cp . shape3 > shape3_java.out // |\___/| | | // | ___ | | | // |/ \| |___| import java.io.*; public class shape3 { boolean debug = true; int pts, pt; datread DR; // = new datread(filename); // defines data structures int new_points = 0; // for each x,y,z point kept int new_polys = 0; // changed k/4 int k = 0; // index for newpts double xyz[][] = new double[10000][3]; // x, y, z for output int newpts[] = new int[40000]; // 3, xyz1, xyz2, xyz3 for output String fileout = "shape3.dat"; double edge, da; int n = 32; int nz = 19; int np = 0; double x, y, z, dz; double sxy[] = new double[19]; public shape3() { System.out.println("shape3.java running"); new_polys = 0; k = 0; new_points = 0; sxy[0]=2.0; // sides at z = 0.0 sxy[1]=1.7369; sxy[2]=1.4517; sxy[3]=1.2022; sxy[4]=0.9894; sxy[5]=0.8141; sxy[6]=0.6771; sxy[7]=0.5788; sxy[8]=0.5197; sxy[9]=0.5; // sides at z = 2.5 sxy[10]=0.5197; sxy[11]=0.5788; sxy[12]=0.6771; sxy[13]=0.8141; sxy[14]=0.9894; sxy[15]=1.2022; sxy[16]=1.4517; sxy[17]=1.7369; sxy[18]=2.0; // sides at z = 5.0 System.out.println(" "); System.out.println("generate new points "); dz = 5.0/(double)(nz-1); da = 4.0/(double)(n-1); System.out.println("edge1 "); z = 0.0; for(int i=0; i