// dat_scale44.java read and scale Utah graphics .dat with x,y,z,w points // dat_scale44 old.dat new.dat xsca ysca zsca wsca xoffs yoffs zoffs woffs // // needs datread44.java datwrite44.java import java.io.*; public class dat_scale44 { boolean debug = true; double xmin, xmax, ymin, ymax, zmin, zmax, wmin, wmax; int pts, pt, k; datread44 DR; // = new datread44(filename); // defines data structures int num_points = 0; // set from datread int num_polys = 0; // set from datread double xyzw[][] = new double[2000][4]; public dat_scale44(String filename, String fileout, double xsca, double ysca, double zsca, double wsca, double xoffs, double yoffs, double zoffs, double woffs) { System.out.println("dat_scale44.java running"); System.out.println("xsca="+xsca+", ysca="+ysca+", zsca="+zsca+", wsca="+wsca); System.out.println("xoffs="+xoffs+", yoffs="+yoffs+", zoffs="+zoffs+", woffs="+woffs); System.out.println("datread44.java reading "+filename); DR = new datread44(filename); // defines data structures num_points = DR.num_points; num_polys = DR.num_polys; System.out.println("num_points="+DR.num_points+ ", num_polys="+DR.num_polys); System.out.println("print polygons"); k = 0; // polygons for(int i=0; i2) xs = Double.parseDouble(args[2]); if(args.length>3) ys = Double.parseDouble(args[3]); if(args.length>4) zs = Double.parseDouble(args[4]); if(args.length>5) ws = Double.parseDouble(args[5]); if(args.length>6) xf = Double.parseDouble(args[6]); if(args.length>7) yf = Double.parseDouble(args[7]); if(args.length>8) zf = Double.parseDouble(args[8]); if(args.length>9) wf = Double.parseDouble(args[9]); new dat_scale44(filename, fileout, xs, ys, zs, ws, xf, yf, zf, wf); } } // end class dat_scale44.java