POV-Ray : Newsgroups : povray.general : spline length? : Re: spline length? Server Time
19 Nov 2024 07:18:51 EST (-0500)
  Re: spline length?  
From: Chris Colefax
Date: 5 Apr 2002 01:28:48
Message: <3cad4420@news.povray.org>
Barron Gillon wrote in message <3cacf454@news.povray.org>...
>Is there any built in way to find the exact length of a spline in POV 3.5?

Mark Wagner <mar### [at] gtenet> replied:
> POV-Ray doesn't know or care about the length of a spline.  In fact, I
don't
> know if it's even possible to calculate the exact length of a cubic or
> natural spline.

I don't believe it is - from my studies of splines a while back it seems the
integration of the relevant functions just isn't possible.  The easiest way
to find a spline's length, then, is probably sampling linear distances at
steps along the spline.  Also, a rough approximation can be calculated using
the bezier hull length.  My own Spline Macro File
(http://www.geocities.com/ccolefax) uses both methods to allow returning the
length of splines and other features like constant-speed traversing of
spline paths.


Post a reply to this message

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