--- ray/src/cv/mgf2meta.c 2003/11/15 17:54:06 2.9 +++ ray/src/cv/mgf2meta.c 2022/04/21 03:11:55 2.13 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: mgf2meta.c,v 2.9 2003/11/15 17:54:06 schorsch Exp $"; +static const char RCSid[] = "$Id: mgf2meta.c,v 2.13 2022/04/21 03:11:55 greg Exp $"; #endif /* * Convert MGF (Materials and Geometry Format) to Metafile 2-d graphics @@ -12,7 +12,7 @@ static const char RCSid[] = "$Id: mgf2meta.c,v 2.9 200 #include "meta.h" #include "random.h" -#include "mgflib/parser.h" +#include "mgf_parser.h" #include "plocate.h" /* XXX shouldn't this rather be in rtmath.h? */ #define MSIZE ((1<<14)-1) @@ -151,7 +151,7 @@ doline( /* draw line conditionally */ hshtab[h][0] = v1x; hshtab[h][1] = v1y; hshtab[h][2] = v2x; hshtab[h][3] = v2y; if ((long)(v2x-v1x)*(v2x-v1x) + (long)(v2y-v1y)*(v2y-v1y) - <= random() % rthresh) + <= irandom(rthresh)) return(0); mline(v1x, v1y, layer/4, 0, layer%4); mdraw(v2x, v2y);