ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/objutil.h
(Generate patch)

Comparing ray/src/common/objutil.h (file contents):
Revision 2.10 by greg, Fri Feb 12 15:35:07 2021 UTC vs.
Revision 2.12 by greg, Wed Mar 3 18:53:08 2021 UTC

# Line 20 | Line 20
20   #define FACE_DEGENERATE         01
21   #define FACE_DUPLICATE          02
22   #define FACE_SELECTED           04
23 < #define FACE_CUSTOM(n)          (1<<(2+(n)))
23 > #define FACE_CUSTOM(n)          (FACE_SELECTED<<(n))
24  
25   struct Face;                            /* forward declaration */
26  
# Line 192 | Line 192 | extern int      verbose;
192   extern char     *emalloc(unsigned int n);
193   extern char     *ecalloc(unsigned int ne, unsigned int n);
194   extern char     *erealloc(char *cp, unsigned int n);
195 < extern void     efree(char *cp);
195 > extern void     efree(char *cp);
196 >
197 > #define getGroupID(sc,nm)       findName(nm, (const char **)(sc)->grpname, (sc)->ngrps)
198 > #define getMaterialID(sc,nm)    findName(nm, (const char **)(sc)->matname, (sc)->nmats)
199  
200   #define CHUNKSIZ        128     /* object allocation chunk size */
201  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines