POV-Ray : Newsgroups : povray.general : Q: Can you #declare blob components? : Re: Q: Can you #declare blob components? Server Time
16 Nov 2024 01:19:30 EST (-0500)
  Re: Q: Can you #declare blob components?  
From: Micha Riser
Date: 27 Oct 1998 15:26:15
Message: <36362C5E.D4CBD66D@usa.net>
No, you can't #declare a blob component. I don't know what you want to
do but maybe following helps: you can make a #macro that inserts blob
componets into a blob{}.

----
#macro make_blob()

sphere{my_pos,my_radius,1 [translate ....]}
cylinder{my_pos,my_radius,0.5 [translate ....]}

#end

blob{

#declare my_pos=3;
#declare my_radius=0.5;
make_blob()

#declare my_pos=<2,1,2>;
#declare my_radius=.2;
make_blob()

}
----
Michael Andrews wrote:
> 
> Hi Folks,
>     Well I think the subject says it all; is it possible to #declare a
> blob component? I was trying to declare an array of them, but couldn't
> work out how it could be done, if it could be done.
>     Any ideas, or is this a total non-starter? Are blob components the
> only syntactic structures that _can not_ be #declared? Maybe this in the
> FAQ or documentation and I'm just making a fool of myself ...
> 
>     All coments gratefully recieved :-)
>         Mike Andrews.

-- 
---------------------------------------------------
visit my homepage:
 http://www.geocities.com/SiliconValley/Pines/7992/
the POVRay Objects Collection:
 http://twysted.net/povobj/
---------------------------------------------------


Post a reply to this message

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