POV-Ray : Newsgroups : povray.documentation.inbuilt : SOR documentation : Re: SOR documentation Server Time
27 Jun 2026 01:23:35 EDT (-0400)
  Re: SOR documentation  
From: Bald Eagle
Date: 13 May 2026 06:50:00
Message: <web.6a04564b251da1bcd1d09a9825979125@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.