POV-Ray : Newsgroups : povray.general : bounding slabs : bounding slabs Server Time
13 Aug 2024 03:23:40 EDT (-0400)
  bounding slabs  
From: ingo
Date: 15 Nov 1998 14:28:56
Message: <364f2b78.0@news.povray.org>
If, in the scene below, I change the y-axis rotation from 90 to 91 deg.
POV-Ray mentions "creating bounding slabs" and goes on with that forever. At
90 deg it traces in a few seconds.

What is it that happens here?


ingo

----
#version 3.1;
#include "colors.inc"
global_settings {
    assumed_gamma 1.0
}

light_source {<500,200,-500> rgb 1}
camera {
    location  <0.0, 3.0,-20.0>
    look_at   <0.0, 3.0, 0.0>
    angle 35
}

#macro Spits(n,r)
  #local l=r*2;
  #local Tz=0;
  #while (n >=0)
    #local ru= (0.5*l)/sin(radians(180/n));
    #local Count=0;
    #local Rot=0;
    #while (Count<=n+1)
      sphere{
        <0,0,0>,r
        translate <(cos(radians(Rot)))*ru,(sin(radians(Rot))*ru),Tz>
      }
      #local Rot=Rot+(360/n);
      #local Count=Count+1;
    #end
    #local n=n-3;
    #local Tz=Tz-0.25;
  #end
#end

object{
  union{Spits(33,0.2)}
  rotate<90,90,0>      // Change to rotate<90,91,0>
  pigment{White}
}


Post a reply to this message

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