POV-Ray : Newsgroups : povray.advanced-users : Adding forces to points in curves : Re: Adding forces to points in curves Server Time
30 Jul 2024 12:27:57 EDT (-0400)
  Re: Adding forces to points in curves  
From: Kevin Wampler
Date: 28 Dec 1999 19:43:37
Message: <389237D0.C93457EB@tapestry.tucson.az.us>
Kevin Wampler wrote:

> This is a quite interesting problem.  I have an idea, but I haven't
> tested it so I don't know how well it would work.  Once you have a
> spline of the right length, you can use Peter Popov's method to place
> the points equally along it, so the problem, as you said, is finding a
> spline of the correct length.  My idea is that you could take your
> starting spline and calculate its total length (using an approximating
> sum).  Then take how this sum compares to the desired length, you could
> then move the control points toward or away from the line connecting the
> endpoints of the spline and repeat the process until the spline has a
> length that is close enough to what you want.  The advantage of this
> method is that you can change exactly how the control points are moved
> to get an effect more like what you are looking for.

Come to think of it, you could probably get even better results by
translating each control perpendicularly away from the line connecting the
two control points on either side of it instead of away from the endpoints
of the spline


Post a reply to this message

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