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