POV-Ray : Newsgroups : povray.general : Rounding a Cylinder : Rounding a Cylinder Server Time
7 Aug 2024 09:26:39 EDT (-0400)
  Rounding a Cylinder  
From: dave
Date: 6 Oct 2001 08:28:34
Message: <3bbef8f2@news.povray.org>
Okay all, just a little bit of help.. I've been trying to come 
up with this formula for a while loop to create a round
set of small cylinders.

I start out with one small cylinder at:
x = 0, y=0, z=-4.5

I know that 1/4 of the way through it should be at
x=4.5, y=0, z=0

1/2 the way through:
x=0, y=0, z=4.5

and 3/4 of the way:
x=-4.5, y=0, z=0

and then back again to:
x=0, y=0, z=-4.5 (However I don't want to go this far

Now I've been trying something like:
(where Offset is the spacing between Cylinders)

#declare X = X + (Offset + .25); (.25 is the circ of the cylinder)
#declare Z = Z + (Offset)

But it doesn't go around, it just makes a bee-ling down the Z axis..

Any help would be lovely.'

Thanks


Post a reply to this message

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