POV-Ray : Newsgroups : povray.bugreports : ERROR in difference : ERROR in difference Server Time
24 Apr 2024 17:37:12 EDT (-0400)
  ERROR in difference  
From: deep125
Date: 15 Jul 2014 11:10:01
Message: <web.53c543831391fd7c27687edf0@news.povray.org>
Minimal code
==================

#version 3.7;
global_settings {assumed_gamma 1.0}


#declare rT =1;
#declare rB =1.5;


#declare rERROR =rT;         //Bad

//#declare rERROR =rT+.00001;      //Good
//#declare rERROR =rT-.00001;      //Good








light_source { <100,1000,-1000>, <1,1,1>}


#declare r1=cylinder { <0,0,0>,<2,0,0>,rT

    texture { pigment { color rgb<1,1,1>} }
}

#declare r2=cylinder { <0.5,0,0>,<1,0,0>,rB

    texture { pigment { color rgb<0,1,1>} }
}

#declare r3=cylinder { <0.4,0,0>,<1.1,0,0>,rERROR

    texture { pigment { color rgb<1,1,0>} }
}

#declare o1=difference
{

    object{r1}
    object{r2}

}

#declare o2=difference
{

    object{r2}
    object{r3}

}


#declare o3=difference
{

    object{r1}
    object{o2}

}


o3


camera {
        orthographic
       location <0,0,4>  angle  90 look_at <0,0,0>    // all front
       location <5,5,5>  angle 80 look_at <0,0,0>    // бок

}

=================

for (rERROR +.00001 ) or (rERROR -.00001 )   render is correct.


Post a reply to this message

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