|  |  | 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
 |  |