|
|
In article <3C4ED0D6.4084AD3C@atosorigin.com>,
Jerome Grimbert <jer### [at] atosorigincom> wrote:
> Two...:
> -(bad) Put the incoming ray in a global... not on the head, not on the head
Not quite so bad, but still not good: put the incoming ray in the mesh
struct. There shouldn't be anything that bothers it while the normal
calculation is being done.
> - Add a ray parameter to all the involved functions going from the function
> where it is needed upto the function it is already available.
> But you might end up with having to update all the objects (at least,
> the prototype of the functions). And stack size is not infinite...
> (ok, it can be just a pointer to the ray structure, that's not that big).
The best solution, but a pain to do.
--
--
Christopher James Huff <chr### [at] maccom>
Post a reply to this message
|
|