| 59 |
|
void OOC_InitFindPhotons (struct PhotonMap *pmap); |
| 60 |
|
/* Initialise NN search queue prior to calling kdT_FindPhotons() */ |
| 61 |
|
|
| 62 |
< |
void OOC_FindPhotons (struct PhotonMap* pmap, const FVECT pos, |
| 63 |
< |
const FVECT norm); |
| 62 |
> |
int OOC_FindPhotons (struct PhotonMap* pmap, const FVECT pos, |
| 63 |
> |
const FVECT norm); |
| 64 |
|
/* Locate pmap -> squeue.len nearest photons to pos with similar normal |
| 65 |
|
* (NULL for volume photons) and return in search queue pmap -> squeue, |
| 66 |
< |
* starting with the further photon at pmap -> squeue.node */ |
| 66 |
> |
* starting with the further photon at pmap -> squeue.node. Return -1 |
| 67 |
> |
* if none found, else 0. */ |
| 68 |
|
|
| 69 |
< |
void OOC_Find1Photon (struct PhotonMap* pmap, const FVECT pos, |
| 70 |
< |
const FVECT norm, Photon *photon); |
| 71 |
< |
/* Locate single nearest photon to pos with similar normal */ |
| 69 |
> |
int OOC_Find1Photon (struct PhotonMap* pmap, const FVECT pos, |
| 70 |
> |
const FVECT norm, Photon *photon); |
| 71 |
> |
/* Locate single nearest photon to pos with similar normal. Return -1 |
| 72 |
> |
* if none found, else 0. */ |
| 73 |
|
|
| 74 |
|
int OOC_GetPhoton (struct PhotonMap *pmap, PhotonIdx idx, |
| 75 |
|
Photon *photon); |
| 76 |
< |
/* Retrieve photon referenced by idx from leaf file and return 0 on |
| 77 |
< |
* success, else -1. */ |
| 76 |
> |
/* Retrieve photon referenced by idx from leaf file and return -1 on |
| 77 |
> |
* error, else 0. */ |
| 78 |
|
|
| 79 |
|
Photon *OOC_GetNearestPhoton (const PhotonSearchQueue *squeue, |
| 80 |
|
PhotonIdx idx); |
| 81 |
< |
/* Retrieve photon from NN search queue after OOC_FindPhotons() */ |
| 81 |
> |
/* Retrieve photon from NN search queue after OOC_FindPhotons() */ |
| 82 |
|
|
| 83 |
|
PhotonIdx OOC_FirstPhoton (const struct PhotonMap* pmap); |
| 84 |
|
/* Return index to first photon in octree */ |