  | 
  | 
 
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
P3-933, windows ME, 3.5.beta.6.icl.win32
Following scene crashes for me: 
#declare I = 0;
#while(I < 2)       
   #declare C = pigment { crackle }                       
   
   #declare CF = function { pigment { C } }
          
   #declare I = I + 1;
#end 
-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
Elias Pschernig wrote:
> 
> P3-933, windows ME, 3.5.beta.6.icl.win32
> 
> Following scene crashes for me:
> 
> #declare I = 0;
> #while(I < 2)
> 
>    #declare C = pigment { crackle }
> 
>    #declare CF = function { pigment { C } }
> 
>    #declare I = I + 1;
> #end
> 
That's a different bug i think, for the same reason, the insert menu
crashed in the waveform sample too.  Bob's workaround was to use #local
and #undef.
Christoph
-- 
Christoph Hormann <chr### [at] gmx de>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
> That's a different bug i think, for the same reason, the insert menu
> crashed in the waveform sample too.  Bob's workaround was to use #local
> and #undef.
Where can I get this file? I could only find the waveform.bmp, but no
.pov for it.
I tried with #local and #undef, but no success so far. Well, I added
the array to still access the calculated function, else there would
be no point for my code..
#local A = array[10]
#local I = 0;
#while(I < 2)       
   #local C = pigment { crackle }                       
   
   #local CF = function { pigment { C } }  
   
   #local A[I] = function { CF }
   
   #undef CF 
    
   #undef C
          
   #local I = I + 1;
#end 
Thanks for this reply and any other suggestions. In case there is
no easy work around, I just wait for the next beta :) (b5 crashes
all the time, and b4 refuses to work.. so not much choice..)
Probably it's not the best idea to develop with a beta anyway, I
still have constants at odd places, because of an earlier bug :)
-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
In article <3bc47a5d@news.povray.org> , "Elias Pschernig" 
<eli### [at] aon at> wrote:
> (b5 crashes
> all the time, and b4 refuses to work.. so not much choice..)
Maybe you should try beta 6?
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
Elias Pschernig wrote:
> 
> Where can I get this file? I could only find the waveform.bmp, but no
> .pov for it.
> 
It's named 'Attributes.pov' in the Insert Menu directory.
Christoph
-- 
Christoph Hormann <chr### [at] gmx de>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
> > Where can I get this file? I could only find the waveform.bmp, but no
> > .pov for it.
> > 
> 
> It's named 'Attributes.pov' in the Insert Menu directory.
> 
Many thanks. By looking at the code there, I think I found out how to get it
working. In my modified version I was using the wrong syntax for storing the
function in the array..
-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 
 | 
  |