1 |
– |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Source sampling routines |
6 |
+ |
* |
7 |
+ |
* External symbols declared in source.h |
8 |
|
*/ |
9 |
|
|
10 |
+ |
#include "copyright.h" |
11 |
+ |
|
12 |
|
#include "ray.h" |
13 |
|
|
14 |
|
#include "source.h" |
104 |
|
} |
105 |
|
|
106 |
|
|
107 |
+ |
int |
108 |
|
skipparts(ct, sz, pp, pt) /* skip to requested partition */ |
109 |
|
int ct[3], sz[3]; /* center and size of partition (returned) */ |
110 |
|
register int pp[2]; /* current index, number to skip (modified) */ |
136 |
|
} |
137 |
|
|
138 |
|
|
139 |
+ |
void |
140 |
|
nopart(si, r) /* single source partition */ |
141 |
|
register SRCINDEX *si; |
142 |
|
RAY *r; |
147 |
|
} |
148 |
|
|
149 |
|
|
150 |
+ |
void |
151 |
|
cylpart(si, r) /* partition a cylinder */ |
152 |
|
SRCINDEX *si; |
153 |
|
register RAY *r; |
224 |
|
} |
225 |
|
|
226 |
|
|
227 |
+ |
void |
228 |
|
flatpart(si, r) /* partition a flat source */ |
229 |
|
register SRCINDEX *si; |
230 |
|
register RAY *r; |