POV-Ray : Newsgroups : povray.binaries.images : HELP REQUEST: Twisted Ropes of Ballista : Re: HELP REQUEST: Twisted Ropes of Ballista Server Time
6 May 2024 05:04:12 EDT (-0400)
  Re: HELP REQUEST: Twisted Ropes of Ballista  
From: Sven Littkowski
Date: 3 Mar 2020 19:50:01
Message: <web.5e5efa5f5f4031dc82f8fb090@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
>   #declare Ropes =
> union {
> #declare RopeR = 0.03;
> #for (Y, 0, 2.5, 0.01)
>  #local R = 0.25+RopeR;
>  #switch (Y)
>  #range (0.00, 0.95)
>   #declare Theta = (Y/0.95)*pi;
>   #declare X = R*sin(Theta+pi);
>   #declare Z = R*cos(Theta+pi);
>   sphere {<X, Y, Z> RopeR }
>  #break
>  #range (0.95, 1.35)
>   #declare Theta = ((Y-0.95)/(1.35-0.95))*pi;
>   #declare a = 0.2*0.2;
>   //#declare X = 8*pow(a,3)/(pow(Y-1.15,2)+4*pow(a,2));
>   #declare X = 0.1*sin (Theta);
>   //#declare Z = -R;
>   sphere {<X, Y, Z> RopeR }
>  #break
>  #range (1.35, 2.50)
>   #declare Theta = ((Y-1.35)/(2.5-1.35))*pi;
>   #declare X = R*sin(Theta+pi);
>   #declare Z = R*cos(Theta);
>   sphere {<X, Y, Z> RopeR }
>  #break
>  #end
> #end
> texture {Rope}
> pigment {Green}
> rotate y*25
> }
> #for (R, 0, 3)
>  object {Ropes rotate y*R*10}
> #end
>
>     rotate < 0.0,180, 0.0 >
>  }


Hi, thanks a lot! However, there is something missing from your code, it might
be something that would be above the "#declareRopes" statement at the very top.
The missing part would be on the same level like the "#for(R,0,3)" statement on
the bottom. can you check and add the missing code?


Post a reply to this message

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