POV-Ray : Newsgroups : povray.general : Sweeping circle along catenary curve : Re: Sweeping circle along catenary curve Server Time
3 May 2024 20:05:42 EDT (-0400)
  Re: Sweeping circle along catenary curve  
From: Alain
Date: 29 Apr 2016 22:11:25
Message: <5724144d@news.povray.org>

> (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


Post a reply to this message

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