1 |
< |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
1 |
> |
/* Copyright (c) 1999 Silicon Graphics, Inc. */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ SGI"; |
16 |
|
#define BKBSIZE 256 /* beam clump size (kilobytes) */ |
17 |
|
#endif |
18 |
|
|
19 |
< |
int checkdepth = 1; /* check depth (!-f option)? */ |
20 |
< |
int checkrepeats = 0; /* check for repeats (-c option)? */ |
19 |
> |
int checkdepth = 1; /* check depth (!-d option)? */ |
20 |
> |
int checkrepeats = 0; /* check for repeats (-u option)? */ |
21 |
|
int frompicz; /* input from pictures & depth-buffers? */ |
22 |
|
int noutsects; /* number of output sections */ |
23 |
|
char obstr, unobstr; /* flag pointer values */ |
175 |
|
bi = hdbindex(hp, gc); /* check for duplicates */ |
176 |
|
if (checkrepeats && (bp = hdgetbeam(hp, bi)) != NULL) { |
177 |
|
for (n = bp->nrm, rv = hdbray(bp); n--; rv++) |
178 |
< |
if (rv->d == dc && |
178 |
> |
if ((hp->priv != NULL || rv->d == dc) && |
179 |
|
rv->r[0][0] == rr[0][0] && |
180 |
|
rv->r[0][1] == rr[0][1] && |
181 |
|
rv->r[1][0] == rr[1][0] && |
236 |
|
} |
237 |
|
hdfreebeam(hp, bq[i]); /* free the beam */ |
238 |
|
} |
239 |
– |
hdflush(NULL); /* write & free clump */ |
239 |
|
return(0); |
240 |
|
} |
241 |
|
|
252 |
|
hddone(hdlist[noutsects]); /* free the section */ |
253 |
|
} |
254 |
|
close(fd); /* close input file */ |
255 |
+ |
hdflush(NULL); /* flush output */ |
256 |
|
} |
257 |
|
|
258 |
|
|