POV-Ray : Newsgroups : povray.general : Parabolic looping macro : Re: Parabolic looping macro Server Time
1 Aug 2024 16:30:10 EDT (-0400)
  Re: Parabolic looping macro  
From: PM 2Ring
Date: 1 Aug 2005 05:50:00
Message: <web.42edef15bdadf4ad9143b5c90@news.povray.org>
"Bryan Valencia" <pov### [at] spamgourmetcom> 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.

Ok, Bryan. I'm posting a draft version of my Chain macro and a short test
scene in binary.images, under subject "True catenary". Rather than
specifying the Streteched length, you specify a Slack factor, which is just
the string length divided by the direct distance between P1 & P2. It
calculates the SegmentCount itself (and segment length) itself.

Have a play with it, I'd love to hear any feedback & suggestions.


Post a reply to this message

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