POV-Ray : Newsgroups : povray.windows : PoV 3.6 throwing unhandled exception ... : PoV 3.6 throwing unhandled exception ... Server Time
18 May 2024 14:44:37 EDT (-0400)
  PoV 3.6 throwing unhandled exception ...  
From: Mike Andrews
Date: 15 Aug 2006 09:40:00
Message: <web.44e1cdcbf6d3c396c717c9af0@news.povray.org>
Hi Folks,

Can someone please give me a sanity check?

I have a simple (section of a) scene which either stops with an out of
memory error while building slabs or throws an unhandled exception
depending on minor variations.

I can not see what the problem is.

System: 933MHz PIII, Win XP Pro SP2, 512Mb.

Thanks for any ideas,

Mike Andrews.

// --- code starts ---

#declare camPos = 5*<-0.1,6,-5>;

camera{
  ultra_wide_angle
  up y
  right x*image_width/image_height
  location camPos
  look_at  0
  angle 50
}

#declare Phi=(sqrt(5)+1)/2;
#declare rPhi=2-Phi;

#declare Cen = (Phi-1)/(2*Phi-1);

#declare Ill = box {
  <0.1,-rPhi-0.1,-0.01>,<0.9,-0.1,0.01>
  translate <-Cen,0,-Phi*(1-Cen)>
}

#declare Scl = 1;
#declare Rot = 0;
union {
  #declare C = 0; #while (C < 10)
    object { Ill scale Scl rotate -Rot*y }
    #debug concat("object ", str(C,0,0),"n")
    #declare Scl = Scl/Phi;
    #declare Rot = Rot+90;
  #declare C = C + 1; #end
  translate <Cen,0,Phi*(1-Cen)>-<0.5,0,Phi/2>
  //rotate 90*y
  //scale 20
  pigment { rgb 1 }
  finish { diffuse 0 ambient 1 }
}

// --- code ends ---


Post a reply to this message

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