POV-Ray : Newsgroups : povray.advanced-users : Spiralled object with a decreasing radius : Re: Spiralled object with a decreasing radius Server Time
8 Jul 2024 18:49:43 EDT (-0400)
  Re: Spiralled object with a decreasing radius  
From: Mark Weyer
Date: 24 Apr 2007 08:05:02
Message: <web.462df15c2acc8fd8fddaa4670@news.povray.org>
> #declare Tex = texture { pigment { color rgb <0.95,0.65,0.55> } finish {
> phong 1 phong_size 100 } }
> #declare S = sphere { 0, 0.25 texture { Tex } }
>
> #declare Precision = 0.5;
> union {
>   #declare T = 0;
>   #while (T<360)
>     object { S translate <0,T/180,-2> rotate 4*y*T }
>     #local T = T + 1/Precision;
>   #end
> rotate x*-20 }
>
> Now, my question is, "Is there is any way to cause each subsequent sphere to
> have a smaller or larger diameter than the one before it?"

Replace the "#declare S" and "object" lines by

  #macro S(T) = sphere {0, (something that depends on T) texture {Tex}}
  object {S(T) translate <0,T/180,-2> rotate 4*y*T}

On a side note you may want to look into the sphere_sweep object. That one
can help you reduce Precision while improving accuracy.

Best regards,

  Mark Weyer


Post a reply to this message

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