POV-Ray : Newsgroups : povray.newusers : Length of spline object changes during animation : Re: Length of spline object changes during animation Server Time
24 Mar 2023 12:13:15 EDT (-0400)
  Re: Length of spline object changes during animation  
From: Alain Martel
Date: 17 Aug 2022 11:30:00
Message: <62fd0978$1@news.povray.org>
Le 2022-08-17 à 10:37, Aj a écrit :
> Hello everyone,
> I am pretty new to povray and I have the following code, where I get the x,y,
> and z coordinates of 6 different points from a simulation and then create a
> sphere sweep through these points. But the problem is the length of this object
> changes with time i.e. as the points move, the sphere sweep object appears to
> change size. If you look at the picture attached then the white and green
> objects appear to be of different lengths.
> Any suggestion will be really helpful.

They appear to be of different length because they ARE of different length.

You should try the inverse kynetic neck (ot IKN) macro that was 
published in one of the news groups. It takes two end points, a 
stiffness parameter at both ends, a twist value at each end, and a total 
length as input. It returns a spline of the correct length connecting 
the end points, or an error message if the end points are to far apart.

Post a reply to this message

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