|
From: <kin...@us...> - 2004-02-10 01:53:54
|
Update of /cvsroot/teem/teem/src/limn/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24821/test Modified Files: off2eps.c Log Message: sorry, still debugging Index: off2eps.c =================================================================== RCS file: /cvsroot/teem/teem/src/limn/test/off2eps.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** off2eps.c 9 Feb 2004 22:48:01 -0000 1.2 --- off2eps.c 9 Feb 2004 23:47:32 -0000 1.3 *************** *** 35,39 **** Nrrd *nmap; FILE *file; ! int wire, concave; mop = airMopNew(); --- 35,39 ---- Nrrd *nmap; FILE *file; ! int wire, concave, describe; mop = airMopNew(); *************** *** 68,71 **** --- 68,73 ---- "use slightly buggy rendering method suitable for " "concave or self-occluding objects"); + hestOptAdd(&hopt, "describe", NULL, airTypeInt, 0, 0, &describe, NULL, + "for debugging: list object definition of OFF read"); hestOptAdd(&hopt, "wd", "5 widths", airTypeFloat, 5, 5, edgeWidth, "0.0 0.0 3.0 2.0 0.0", *************** *** 97,101 **** if (!(file = airFopen(inS, stdin, "r"))) { fprintf(stderr, "%s: couldn't open \"%s\" for reading\n", me, inS); ! return 1; } airMopAdd(mop, file, (airMopper)airFclose, airMopAlways); --- 99,103 ---- if (!(file = airFopen(inS, stdin, "r"))) { fprintf(stderr, "%s: couldn't open \"%s\" for reading\n", me, inS); ! airMopError(mop); return 1; } airMopAdd(mop, file, (airMopper)airFclose, airMopAlways); *************** *** 110,114 **** airMopError(mop); return 1; } - win = limnWindowNew(limnDevicePS); win->ps.lineWidth[limnEdgeTypeBackFacet] = edgeWidth[0]; --- 112,115 ---- *************** *** 135,138 **** --- 136,143 ---- fclose(win->file); + if (describe) { + limnObjectDescribe(stdout, obj); + } + airMopOkay(mop); return 0; |