POV-Ray : Newsgroups : povray.general : memory question : memory question Server Time
2 Aug 2024 16:26:15 EDT (-0400)
  memory question  
From: emkaah
Date: 27 Aug 2004 22:21:17
Message: <412fec1d@news.povray.org>
I'm working on a macro, and I get the idea that:

#declare SphereA = sphere{<0,0,0>,5 pigment{Green}}

#declare Count = 0;
union{
  #while (Count<5)
   object{SphereA translate x*2*Count}
   #declare Count = Count + 1;
  #end
}

uses a lot more memory then:

union{
  sphere{<0,0,0>,5 pigment{Green} translate x*2}
  sphere{<0,0,0>,5 pigment{Green} translate x*4}
  sphere{<0,0,0>,5 pigment{Green} translate x*6}
  sphere{<0,0,0>,5 pigment{Green} translate x*8}
  sphere{<0,0,0>,5 pigment{Green} translate x*10}
}

Can somebody tell me this is true? I find this strange for some reason.


Post a reply to this message

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