POV-Ray : Newsgroups : povray.bugreports : Part of the body disappear. : Part of the body disappear. Server Time
20 Oct 2021 19:20:30 EDT (-0400)
  Part of the body disappear.  
From: akopjan
Date: 7 Dec 2016 12:40:01
Message: <web.584848193570d4917858c2f90@news.povray.org>
When I make an intersection some parts of a body unexpectedly disappear.
The version is MacOS:
POV-Ray 3.7.0.unofficial

Could you please help me?

The code is

#include "colors.inc"
#include "textures.inc"
#include "metals.inc"

light_source {<7, -2, 6>*3.2
color White}
camera {orthographic
  location <7, 5, 10>/4
  look_at (<0,0,1>)/2
  sky <0,0,1>
}

#declare c2 = texture {pigment {color Green}}
#declare c4 = texture{Silver_Metal finish { diffuse 0.8 phong 3 }}


#declare k= 1.4;
#declare a=sqrt(3*k*k-1)/2;
#declare b=sqrt(k*k+1)/2;
#declare c=1;



#declare slp= isosurface{
    function{
     max(
      min(
       x*a+y*b+z*c-a,
       x*a-y*b+z*c-a
      ),
      x*x+y*y-z
     )
    }
    max_gradient 5
    contained_by{box{-4, 4}}
   }

#declare M=4;
intersection{
 #declare i=0;
 #while (i<M)
  object{slp rotate <0,0,i*360/M> texture{c4} }
  #declare i=i+1;
 #end
 no_reflection no_shadow
}


Post a reply to this message

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