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

Comparing ray/src/cv/mgf2meta.c (file contents):
Revision 2.9 by schorsch, Sat Nov 15 17:54:06 2003 UTC vs.
Revision 2.13 by greg, Thu Apr 21 03:11:55 2022 UTC

# Line 12 | Line 12 | static const char      RCSid[] = "$Id$";
12  
13   #include "meta.h"
14   #include "random.h"
15 < #include "mgflib/parser.h"
15 > #include "mgf_parser.h"
16   #include "plocate.h" /* XXX shouldn't this rather be in rtmath.h? */
17  
18   #define MSIZE   ((1<<14)-1)
# Line 151 | Line 151 | doline(                /* draw line conditionally */
151          hshtab[h][0] = v1x; hshtab[h][1] = v1y;
152          hshtab[h][2] = v2x; hshtab[h][3] = v2y;
153          if ((long)(v2x-v1x)*(v2x-v1x) + (long)(v2y-v1y)*(v2y-v1y)
154 <                        <= random() % rthresh)
154 >                        <= irandom(rthresh))
155                  return(0);
156          mline(v1x, v1y, layer/4, 0, layer%4);
157          mdraw(v2x, v2y);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines