POV-Ray : Newsgroups : povray.general : Rounding a Cylinder : Re: Rounding a Cylinder Server Time
7 Aug 2024 09:23:12 EDT (-0400)
  Re: Rounding a Cylinder  
From: dave
Date: 6 Oct 2001 09:49:49
Message: <3bbf0bfd@news.povray.org>
DuH!.. 
Is see now.. I wasn't even think cos, and sin.. 
And I didn't EVER think of rotate, rotate might be nicer on the loop.

Thanks all

Christoph Hormann <chr### [at] gmxde> wrote:


> dav### [at] intrepidvoygrcom wrote:
>> 
>> 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.
>> 
>> [...]

> How about:

> #declare Angle=0;

> #while (Angle < 2*pi)
>   #declare Point=<cos(Angle), sin(Angle), 0>;     
>   #declare Angle=Angle+(2*pi/50);
>   #declare Point2=<cos(Angle), sin(Angle), 0>; 
>   cylinder { Point, Point2, 0.05 }
> #end

> Note that you can also use 'rotate' instead of trigonometry.

> Christoph

> -- 
> Christoph Hormann <chr### [at] gmxde>
> IsoWood include, radiosity tutorial, TransSkin and other 
> things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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