|
![](/i/fill.gif) |
Florian Brucker nous apporta ses lumieres en ce 06/12/2006 14:13:
> Hi!
>> #local index = 0;
>> #while (index < 10000)
>> #local TheObject = sphere { <index, 0, 0>, 1 pigment {rgb 1} };
>> ... (do something with TheObject) ...
>> #local index = index+1;
>> #end
> This is not always possible: Imagine calling a include file inside a
> loop, where the include file uses a global variable that has to be
> changed for every run:
> #local index = 0;
> #while (index<10000)
> #declare This_Is_Used_By_The_Include = Some_Function(index);
> #include "someinclude.inc"
> #local index = index + 1;
> #end
> You'll always have to rely to some extent on the 3rd-party programmer,
> even if you use real OOP-languages like C++ or Java.
> Regards,
> Florian
What HORRIBLE piece of code! Do that then wonder why your scene takes so much
time to parse and why it gobbles up your memory. Beter to use a real macro.
--
Alain
-------------------------------------------------
Al Gore is proof that Tennessee has a sense of humor.
Post a reply to this message
|
![](/i/fill.gif) |