--- ray/src/cv/mgflib/mgfdoc.tr 1995/06/29 14:40:18 1.4 +++ ray/src/cv/mgflib/mgfdoc.tr 1995/11/22 12:23:27 1.9 @@ -1266,7 +1266,8 @@ corresponds to the measurement at Values in between are separated by .I "(l_max-l_min)/(N-1)" nanometers. -All values must be non-negative, and the spectrum outside of the +All values should be non-negative unless defining a component for +complementary color mixing, and the spectrum outside of the specified range is assumed to be zero. (The visible range is 380 to 780 nm.)\0 The actual units and scale of the measurements do not matter, @@ -2225,7 +2226,7 @@ o stylus p 0 0 .005 v vend = p 0 0 .05 - cyl vtip1 .0015 + cyl vtip1 .0015 vend sph vend .0015 cone vtip0 0 vtip1 .0015 o @@ -2387,7 +2388,7 @@ ring - create a circular ring with inner and outer rad .SH SYNOPSIS .LP -.B cyl +.B ring .I "vc rmin rmax" .SH DESCRIPTION @@ -2566,6 +2567,10 @@ In the first form, a single integer is given for the of MGF that is to be produced. Since MGF is in its first major release, this is not yet a useful form, but it will be when the second major release comes out. +This has the necessary side-effect of expanding all included files. +(See the +.UL i +entity.)\0 .LP In the second form, .I mgfilt @@ -2590,7 +2595,7 @@ mgfilt f,v,p,xf input.mgf > flatpoly.mgf .SH SEE ALSO .LP -mgf2rad, rad2mgf +i, mgf2rad, rad2mgf .ds RH MGF2RAD .bp .SH @@ -3272,8 +3277,9 @@ and return one of the non-zero values from "parser.h" #define MG_EMEM 8 /* out of memory */ #define MG_ESEEK 9 /* file seek error */ #define MG_EBADMAT 10 /* bad material specification */ +#define MG_ELINE 11 /* input line too long */ -#define MG_NERRS 11 +#define MG_NERRS 12 .DE If it is inappropriate to send output to standard error, the calling program should use the routines listed under @@ -3357,6 +3363,9 @@ The function reads the next input line from the current file, returning the number of characters in the line, or zero if the end of file is reached or there is a file error. +If the last character read in the input line is not a newline, +then the input line was too long, and you +should return an MG_ELINE error. The function skips over escaped newlines, and keeps track of the line number in the current file context .I mg_file,