--- ray/src/cv/mgflib/mgfdoc.tr 1995/05/12 21:42:42 1.2 +++ ray/src/cv/mgflib/mgfdoc.tr 1995/09/20 10:07:10 1.7 @@ -746,9 +746,6 @@ o door o o - i cubfurn.inc -mx -t 405 133.5 0 -o - # Six file cabinets (36" wide each) # ("filecab.inc" was given as an earlier example in Section 1.2) o filecab.x @@ -1269,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, @@ -2228,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 @@ -2390,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 @@ -2697,8 +2695,7 @@ Greg Ward SEE ALSO .LP ies2rad(1), mgf2meta(1), obj2rad(1), oconv(1), rad2mgf(1), xform(1) -.ds RH -RAD2MGF +.ds RH RAD2MGF .bp .SH NAME @@ -3124,7 +3121,7 @@ following: #define MG_E_CMIX 4 /* cmix */ #define MG_E_CSPEC 5 /* cspec */ #define MG_E_CXY 6 /* cxy */ -#define MG_E_CYL 7 /* cyl */ +#define MG_E_CYL 7 /* cyl */ #define MG_E_ED 8 /* ed */ #define MG_E_FACE 9 /* f */ #define MG_E_INCLUDE 10 /* i */ @@ -3269,7 +3266,7 @@ and return one of the non-zero values from "parser.h" #define MG_EUNK 1 /* unknown entity */ #define MG_EARGC 2 /* wrong number of arguments */ #define MG_ETYPE 3 /* argument type error */ -#define MG_EILL 4 /* illegal argument value */ +#define MG_EILL 4 /* illegal argument value */ #define MG_EUNDEF 5 /* undefined reference */ #define MG_ENOFILE 6 /* cannot open input file */ #define MG_EINCL 7 /* error in included file */ @@ -3291,7 +3288,7 @@ listed above in the native country's language. .SH SEE ALSO .LP -mg_fgetpos, mg_handle, mg_init +mg_fgetpos, mg_handle, mg_init, mg_open .ds RH MG_OPEN .bp .SH @@ -4277,7 +4274,7 @@ mg_init, mg_load, obj_handler, xf_xfmpoint .SH NAME .LP -xf_xfmpoint xf_xfmvect, xf_rotvect, xf_scale - apply current +xf_xfmpoint, xf_xfmvect, xf_rotvect, xf_scale - apply current transformation .SH SYNOPSIS @@ -4490,20 +4487,20 @@ and adopt the following code to convert between CIE an #define CIE_y_w 0.3333 #endif -#define CIE_D ( CIE_x_r*(CIE_y_g - CIE_y_b) + \\\\ - CIE_x_g*(CIE_y_b - CIE_y_r) + \\\\ +#define CIE_D ( CIE_x_r*(CIE_y_g - CIE_y_b) + \\ + CIE_x_g*(CIE_y_b - CIE_y_r) + \\ CIE_x_b*(CIE_y_r - CIE_y_g) ) -#define CIE_C_rD ( (1./CIE_y_w) * \\\\ - ( CIE_x_w*(CIE_y_g - CIE_y_b) - \\\\ - CIE_y_w*(CIE_x_g - CIE_x_b) + \\\\ +#define CIE_C_rD ( (1./CIE_y_w) * \\ + ( CIE_x_w*(CIE_y_g - CIE_y_b) - \\ + CIE_y_w*(CIE_x_g - CIE_x_b) + \\ CIE_x_g*CIE_y_b - CIE_x_b*CIE_y_g ) ) -#define CIE_C_gD ( (1./CIE_y_w) * \\\\ - ( CIE_x_w*(CIE_y_b - CIE_y_r) - \\\\ - CIE_y_w*(CIE_x_b - CIE_x_r) - \\\\ +#define CIE_C_gD ( (1./CIE_y_w) * \\ + ( CIE_x_w*(CIE_y_b - CIE_y_r) - \\ + CIE_y_w*(CIE_x_b - CIE_x_r) - \\ CIE_x_r*CIE_y_b + CIE_x_b*CIE_y_r ) ) -#define CIE_C_bD ( (1./CIE_y_w) * \\\\ - ( CIE_x_w*(CIE_y_r - CIE_y_g) - \\\\ - CIE_y_w*(CIE_x_r - CIE_x_g) + \\\\ +#define CIE_C_bD ( (1./CIE_y_w) * \\ + ( CIE_x_w*(CIE_y_r - CIE_y_g) - \\ + CIE_y_w*(CIE_x_r - CIE_x_g) + \\ CIE_x_r*CIE_y_g - CIE_x_g*CIE_y_r ) ) #define CIE_rf (CIE_y_r*CIE_C_rD/CIE_D)