POV-Ray : Newsgroups : povray.general : Declaring blob components ? : Re: Declaring blob components ? Server Time
10 Aug 2024 05:18:14 EDT (-0400)
  Re: Declaring blob components ?  
From: David Wilkinson
Date: 28 Feb 2000 06:39:44
Message: <vjnkbscr3cs69bp1vtn2nng23es5su4ehj@4ax.com>
On Sat, 26 Feb 2000 19:29:53 -0700, Moon47 <rdm### [at] earthlinknet> wrote:

>Basically how do i declare a blob component such as a cylinder...?
>It will not seem to accept the strength as a valid cylinder entry...?
>
>I want to declare a component and use i.e. MyCylinder to rotate ti
>around the central components w/ out rewriting the entire component...?
  
Here is something using the same technique as mr.art's reply, but more self
explanatory.
It may do what you are looking for.

#macro Cy(PitchRad) <PitchRad,0,0> <PitchRad,1,0> Rad, Strength #end 

#local Rad =1;
#local Strength =2;

#local Ang=0;
blob {
      #while (Ang<360)
      cylinder { Cy(4) rotate y*Ang  }
      #local Ang=Ang+20;
      #end
      pigment {Red}
}         
----------------------------
dav### [at] cwcomnet
http://www.hamiltonite.mcmail.com
----------------------------


Post a reply to this message

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