POV-Ray : Newsgroups : povray.general : Declaring blob components ? : Re: Declaring blob components ? Server Time
10 Aug 2024 05:14:09 EDT (-0400)
  Re: Declaring blob components ?  
From: mr art
Date: 27 Feb 2000 22:21:21
Message: <38B9E9BC.87AB090C@gci.net>
You could use macros
#macro MyCylynder(...) -y,+y,RB-.02 #end
#local S1=-50;#local S2=-100;
blob	{
		threshold .0001
		cylinder{0,y*.06,RB,20}
		cylinder{MyCylynder,S1 translate -x*.06}
		cylinder{MyCylynder,S1 translate -x*.06 rotate +y*120}
		cylinder{MyCylynder,S1 translate -x*.06 rotate -y*120}
		
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*030}
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*090}
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*150}
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*210}
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate -y*030}
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate -y*090}
		sphere	{0,RB,-100 scale <1,.65,1> translate -y*(RB*.35)}
		}

Moon47 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...?

-- 
Mr. Art

"Often the appearance of reality is more important 
than the reality of the appearance."
Bill DeWitt 2000


Post a reply to this message

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