|
|
In article <3dcc1ea5@news.povray.org>, "Wu Yang" <wya### [at] cswrightedu>
wrote:
> I think there are maybe more than or less than one intersection point in the
> stack, and they are the intersection points with the same ray, and what I
> need is Best_Intersection->IPoint in Trace() function(render.cpp file). Is
> it right? Thanks.
What you need is to buy and read a good C++ book or take a good course
in C++, and then take the time to actually figure out what the POV-Ray
source code does before trying to make any changes.
If you then have a problem, state the entire problem and your goal
clearly at the very start, not some useless "is it right" garbage that
keeps everyone guessing as to what you are really doing. There really is
a category of "stupid" questions, and most of yours fit in it...you
could most likely easily figure out the answer yourself, if you knew the
language the source code is written in.
And finally, *READ THE REPLIES*. I don't know why some people just
ignore it when people give them the answer, or worse, ignore the answer
and go off on a wild goose chase...
Now: where is Trace() defined? What does that code say it does? It says
nothing about meshes, does it? The Trace() function is called to compute
the color seen along a ray, adding this code there won't catch all
intersection tests, but it will catch any kind of intersection, not just
ones with meshes. I can't tell you how to do it, because you haven't
said *what* you are trying to do, or what your goal is.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|
|