POV-Ray : Newsgroups : povray.newusers : Draw powerline wire on image background : Re: Draw powerline wire on image background Server Time
7 Dec 2021 04:29:36 EST (-0500)
  Re: Draw powerline wire on image background  
From: Bald Eagle
Date: 24 Oct 2019 13:35:00
Message: <web.5db1e0a7cf776ee04eec112d0@news.povray.org>
"ale### [at] gmailcom" <ale### [at] gmailcom> wrote:

> In catenary.zip is used torus as connecting elements ,is it possibile to use
> other object to make something like a power line wires ? i think cylinder is the
> right choice but i don't know who to insert it in che catenary

Typically one would use a sphere_sweep object, or a series of cylinders
connecting spheres of the same diameter.  Try just using spheres to see if you
get a string of spheres that look like the right shape, and then fill in the
spaces with cylinders.  The shorter the distance between cylinders, the smoother
your curve will be.

The way I would approach this is by creating a scene with a loop that uses a
variable called Clock as a seed() value for creating the pseudo-random values
used for changing the endpoints of your catenary curve.

Then you can use #for (Clock, 1, 1) to just make a single catenary until you get
all of the rest of the code worked out and looking good, and then you can see
what it's like when you do something like #for (Clock, 1, 10).

If THAT looks good, then you can comment out the loop, and set your seed with
the animation _clock_, and then you will have a different curve for every frame.


Post a reply to this message

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