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.4 by greg, Sat Apr 18 17:10:33 2020 UTC vs.
Revision 2.8 by greg, Tue Jun 23 19:29:40 2020 UTC

# Line 23 | Line 23
23  
24   struct Face;                            /* forward declaration */
25  
26 + typedef int             VNDX[3];        /* vertex indices (point,map,normal) */
27 +
28 + /* Structure to hold vertex indices and link back to face list */
29   typedef struct {
30          int             vid;            /* vertex id */
31          int             tid;            /* texture id */
# Line 95 | Line 98 | int            xfmScene(Scene *sc, const char *xfm);
98   /* Add a descriptive comment */
99   void            addComment(Scene *sc, const char *comment);
100  
101 + /* Find index for comment containing the given string (starting from n) */
102 + int             findComment(Scene *sc, const char *match, int n);
103 +
104   /* Clear comments */
105   void            clearComments(Scene *sc);
106  
# Line 151 | Line 157 | int            changeGroup(Scene *sc, const char *gname,
157   /* Change material for the indicated faces */
158   int             changeMaterial(Scene *sc, const char *mname,
159                                          int flreq, int flexc);
160 +
161 + /* Add a vertex to our scene, returning index */
162 + int             addVertex(Scene *sc, double x, double y, double z);
163 +
164 + /* Add a texture coordinate to our scene, returning index */
165 + int             addTexture(Scene *sc, double u, double v);
166 +
167 + /* Add a surface normal to our scene, returning index */
168 + int             addNormal(Scene *sc, double xn, double yn, double zn);
169 +
170 + /* Set current group (sc->lastgrp) to given ID */
171 + void            setGroup(Scene *sc, const char *nm);
172 +
173 + /* Set current material (sc->lastmat) to given ID */
174 + void            setMaterial(Scene *sc, const char *nm);
175 +
176 + /* Add a new face to our scene, using current group and material */
177 + Face *          addFace(Scene *sc, VNDX vid[], int nv);
178  
179   /* Free a scene */
180   void            freeScene(Scene *sc);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines