--- ray/src/rt/rv2.c 1993/09/09 13:47:55 2.20 +++ ray/src/rt/rv2.c 1994/02/28 09:24:43 2.24 @@ -32,6 +32,8 @@ static char SCCSid[] = "$SunId$ LBL"; extern char *atos(); +extern FILE *popen(); + extern char rifname[128]; /* rad input file name */ extern char VersionID[]; @@ -634,8 +636,10 @@ char *s; if (thisray.ro == NULL) (*dev->comout)("ray hit nothing"); else { - sprintf(buf, "ray hit %s %s \"%s\"", - objptr(thisray.ro->omod)->oname, + sprintf(buf, "ray hit %s%s %s \"%s\"", + thisray.rod < 0.0 ? "back of " : "", + thisray.ro->omod == OVOID ? VOIDID : + objptr(thisray.ro->omod)->oname, ofun[thisray.ro->otype].funame, thisray.ro->oname); (*dev->comout)(buf); @@ -689,6 +693,7 @@ char *s; (*dev->comout)(fname); (*dev->comout)("\"...\n"); /* write header */ + newheader("RADIANCE", fp); fputs(progname, fp); fprintview(&ourview, fp); if (octname != NULL)