POV-Ray : Newsgroups : povray.newusers : Non-touching objects seem to be touching : Re: Non-touching objects seem to be touching Server Time
3 Jul 2022 20:24:22 EDT (-0400)
  Re: Non-touching objects seem to be touching  
From: Bald Eagle
Date: 10 Feb 2017 15:20:01
Message: <web.589e205cccd1a85ec437ac910@news.povray.org>
BTW,
It looks like my "sleeve" idea (re)introduces the same problem at the scale I'm
using.  Only it looks to me like the sleeve interacts with _itself_

Uncomment the differenced-away cylinder and the red shading gets much darker.

I'm thinking that maybe some of these simple scenes that illustrate known
problems ought to wind up in a directory included with future versions, along
with any key hard-coded internal values in the comments.


#include "colors.inc"
background { color White }
camera {
 location <0.5, 0.5, 1.5>
 look_at  <0.0, 0.0,  0.0>
}
 light_source { <-1, 0.0, 2> color White}
 light_source { < 1, 0.0, 2> color White}

#declare Axis = 0.002;
cylinder {<0, 0, 0> <1, 0, 0> Axis pigment {Red} no_shadow}
cylinder {<0, 0, 0> <0, 1, 0> Axis pigment {Green} no_shadow}
cylinder {<0, 0, 0> <0, 0, 1> Axis pigment {Blue} no_shadow}

//cylinder {<-1, 0.0, 2> <0, 0, 0> 0.001 pigment {Green} no_shadow}
//cylinder {< 1, 0.0, 2> <0, 0, 0> 0.001 pigment {Green} no_shadow}

#declare Sleeve =
difference {
 cylinder {< -0.525, 0.000, 0.000 >, < 0.525, 0.000, 0.000 >, 0.15}
  //cylinder {< -0.525, 0.000, 0.000 >, < 0.525, 0.000, 0.000 >, 0.15-0.0005}
 texture {pigment {color Red transmit 0.5}}
 //no_shadow
}

 object {Sleeve}

intersection{
 sphere {<0.525,  0.0,  0.0>, 0.15}
     box    {<0.525, -0.3, -0.3>, <0.7, 0.3, 0.3>}
     texture {pigment {color Red transmit 0.5}}
 //no_shadow
}

union {
 sphere {<-0.5250, 0.000, 0.000 >, 0.149 }
 sphere {< 0.5250, 0.000, 0.000 >, 0.149 }
 sphere {<-0.2625, 0.000, 0.000 >, 0.149 }
 sphere {< 0.0000, 0.000, 0.000 >, 0.149 }
 sphere {< 0.2625, 0.000, 0.000 >, 0.149 }
 texture {pigment {color Yellow}  finish { phong 1 }}
}


Post a reply to this message

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