POV-Ray : Newsgroups : povray.binaries.images : Lathe. Bezier_spline. Problem : Re: Lathe. Bezier_spline. Problem Server Time
7 Nov 2024 09:26:09 EST (-0500)
  Re: Lathe. Bezier_spline. Problem  
From: William F Pokorny
Date: 2 May 2016 08:57:35
Message: <57274ebf$1@news.povray.org>
On 05/02/2016 07:56 AM, LanuHum wrote:
> lathe { bezier_spline 8,
>      <0,1><0.25,0.75><-0.07594,0.5><0.1875,0.1875>
>      <0.1875,0.1875><0.3929,-0.05616><0,-0.5><0,-1>
> }
>
> File '/tmp/Empty.pov' line 17: Parse Error: Incorrect point in lathe.
> Fatal error in parser: Cannot parse input.
> Render failed
>
>
> I can't appropriate to control point the negative value...
> Why?????
> To set the necessary form, I need a negative value!
> At the same time the curve doesn't cross null value...
>
> Look attachment:
>

The issue looks to be this code in the parser for the lathe object :

         for (i = 0; i < Object->Number; i++)
         {
                 Parse_Comma();

                 Parse_UV_Vect(Points[i]);

                 if ((i > 0) && (i < Object->Number - 1) && 
(Points[i][X] < 0.0))
                 {
                         Error("Incorrect point in lathe.");
                 }
         }

which is written in a way which does not allow the bezier control points 
to swing to minus x while making some allowance for other curve's 
control points.

In other words I think it is testing the control points and not the 
fixed end points in each of the bezier curve segments.

Probably simple enough I could attempt a fix... Needs a conditional 
based on whether we have bezier curve I think. If someone else is going 
after a fix please speak up, otherwise I'll step up and try for one.

Bill P.


Post a reply to this message

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