// printgrid.cxx: main program for testing ivgrid.cxx,
// 15-869, assignment 2: View Transformation
//
// Paul Heckbert	28 Sept 1999

#include <stdio.h>
#include <stdlib.h>
#include "grid.h"

int main (int argc, char **argv) {

    if (argc!=2) {
	fprintf(stderr, "Usage: ivpoints IVFILE\n");
	exit(1);
    }

    const int ngrid = 200;

    Grid_data gd(ngrid, ngrid);	// create a grid
	// 200x200 is the max resolution of the Vivid scanner
	// so it's probably pointless to go much higher than that

    gd.inventor_read_and_resample(argv[1]);
    gd.print();
}
