POV-Ray : Newsgroups : povray.general : Parabolic looping macro : Re: Parabolic looping macro Server Time
1 Aug 2024 16:24:27 EDT (-0400)
  Re: Parabolic looping macro  
From: Bonsai
Date: 27 Jul 2005 03:41:15
Message: <42e73a9b$1@news.povray.org>
Bryan Valencia wrote:
> I'd like to find a parabolic looping macro, where I can give 2 endpoints and
> a "stretched" length.  maybe something like this:
>  
> #macro loop(P1, P2, Stretched, SegmentCount, SegmentObject)
>  
> ...where P1 and P2 are the endpoints, StretchedLength is how much "string"
> there is, and the "segments" would be spaced evenly along the spline like
> the links of a chain.

Maybe you can reuse the math behind my arch macro:

http://www.b0n541.net/povray/povmacro.html

Just my two eurocents,

Bonsai

-- 
<--------------------------->
    ___ __ __  _ ___ ___  _
   | _ )  \  \( )  _) _ )( )
   | _ \() |\ \ |\ \/ _ \| |
   |___/__/_)\__)___)/ \_)_)

        www.b0n541.net
<--------------------------->


Post a reply to this message

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