"Bald Eagle" <cre### [at] netscape net> wrote:
> POV-Ray complains when I have a control point with an x component that is
> negative.
> So then how is the error getting triggered if there is no testing the x-value???
Thanks to jr hunting this down while I was busy with other things!
parser.cpp starting at line 5665
if ((Points[i][X] < 0.0) ||
^^^^^^^^^^^^^^^^^^^ and there we go.
((i > 1 ) && (i < Object->Number - 1) && (Points[i][Y] <=
Points[i-1][Y])))
{
Error("Incorrect point in surface of revolution.");
}
The more I do this, the more I see exactly what clipka meant about the parser.
All of these tests and guards ought to be isolated in sor.cpp, not smeared all
over the source codebase.
- BE
Post a reply to this message
|