POV-Ray : Newsgroups : povray.advanced-users : how to get the equation of a bezier curve : Re: how to get the equation of a bezier curve Server Time
31 May 2024 23:26:34 EDT (-0400)
  Re: how to get the equation of a bezier curve  
From: Le Forgeron
Date: 19 Feb 2013 13:12:17
Message: <5123c081$1@news.povray.org>
Le 19/02/2013 11:46, paola nous fit lire :
> Hi,
> I'm using bezier.inc and this commands:
> 
> #declare Spline1 = array[4] { A1,B1,C1,D1 }
> #declare BezRad = 0.01;
> #declare FullCurve = true;
> DrawSpline(Spline1)
> 
> is it possible to get the equation of the resulting curve?

If the implementation is correct, the curve should be
 P(t)= A1.(1-t)^3 +3.B1.t.(1-t)^2+3.C1.t^2.(1-t)+D1.t^3

For t from 0 to 1;


Post a reply to this message

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