POV-Ray : Newsgroups : povray.object-collection : Sphere Sweep 1.2 Quadratic spline question : Re: Sphere Sweep 1.2 Quadratic spline question - STOP THE PRESS! Server Time
20 Apr 2024 06:45:09 EDT (-0400)
  Re: Sphere Sweep 1.2 Quadratic spline question - STOP THE PRESS!  
From: Cousin Ricky
Date: 8 Sep 2020 03:07:11
Message: <5f572d9f$1@news.povray.org>
On 2020-08-31 1:22 PM (-4), Cousin Ricky wrote:
> 
> To get an SVG style quadratic curve, you would need to use 
> SSWP_BEZIER_SPLINE, and clone the middle control point:
> 
>    SphereSweep_Approx
>    ( SSWP_BEZIER_SPLINE,
>      array { P1, P2, P2, P3 },
>      array { Line, Line, Line, Line}, 100, 0
>    )

That is wrong!  Something didn't look right about the curve, so I went 
back and double-checked the Bézier theory.  The correct solution is this:

   SphereSweep_Approx
   ( SSWP_BEZIER_SPLINE,
     array { P1, P2 * 2/3 + P1 / 3, P2 * 2/3 + P3 / 3, P3 },
     array { Line, Line, Line, Line}, 100, 0
   )

I will post an example illustration in p.b.i.


Post a reply to this message

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