ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/rad2mgf.c
(Generate patch)

Comparing ray/src/cv/rad2mgf.c (file contents):
Revision 2.14 by gwlarson, Fri Sep 4 09:09:58 1998 UTC vs.
Revision 2.15 by gwlarson, Wed Oct 14 14:48:04 1998 UTC

# Line 426 | Line 426 | o_face(mod, typ, id, fa)               /* print out a polygon */
426   char    *mod, *typ, *id;
427   FUNARGS *fa;
428   {
429 <        char    entbuf[2048];
429 >        char    entbuf[2048], *linestart;
430          register char   *cp;
431          register int    i;
432  
# Line 434 | Line 434 | FUNARGS        *fa;
434                  return(-1);
435          setmat(mod);
436          setobj(id);
437 <        cp = entbuf;
437 >        cp = linestart = entbuf;
438          *cp++ = 'f';
439          for (i = 0; i < fa->nfargs; i += 3) {
440                  *cp++ = ' ';
441 +                if (cp - linestart > 72) {
442 +                        *cp++ = '\\'; *cp++ = '\n';
443 +                        linestart = cp;
444 +                        *cp++ = ' '; *cp++ = ' ';
445 +                }
446                  getvertid(cp, fa->farg + i);
447                  while (*cp)
448                          cp++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines