POV-Ray : Newsgroups : povray.general : Sweeping circle along catenary curve : Re: Sweeping circle along catenary curve Server Time
3 May 2024 12:39:54 EDT (-0400)
  Re: Sweeping circle along catenary curve  
From: ratneshmadaan
Date: 5 May 2016 10:30:01
Message: <web.572b57bc7cac95668bfd5e7f0@news.povray.org>
Alain <kua### [at] videotronca> wrote:

> > (One day old to povray)
> > I want to render catenary wires (will assume them to be plain in texture)
> > There's an old, but useful thread for rendering catenary chains here
> >
http://news.povray.org/povray.binaries.images/thread/%3Cweb.42f332855de03cffa196ebe30%40news.povray.org%3E/
> >
> > I modified the code, and basically instead of torus links, with alternating 90
> > degree rotation, I made them cylindrical with no rotation. However this is a
> > naive way to extrude.
> >
> > How can I do this? Basically use polygon
> > sweep(http://www.povray.org/documentation/view/3.6.2/62/) along an array of 3D
> > points got by solving for a catenary
> >
> >
>
> If you want a simple, plain, wire, then you can use the sphere_sweep
> primitive.
> If you use the cubic_spline, you use the code to generate points
> starting one step before the first point and ending one step after the
> last point. As the cubic_spline interpolation give you a smooth curve,
> you don't need many points, something like 10 to 20 points should be
> enough in most cases.
> Check the documentation about sphere_sweep.
>
>
> Alain

Hey thanks for the help. Before I saw this, I came across a rope macro and
modified that heh
http://news.povray.org/povray.binaries.images/thread/%3C4a1e679e@news.povray.org%3E/


Post a reply to this message

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