POV-Ray : Newsgroups : povray.general : trace() position imprecise : trace() position imprecise Server Time
29 Jul 2024 10:20:12 EDT (-0400)
  trace() position imprecise  
From: jkroby
Date: 11 Nov 2011 03:55:00
Message: <web.4ebce2923444898e38b76eca0@news.povray.org>
Hi,
I am trying to regenerate a 3D mesh with intersecting planes of the mesh and
then the son-splines, that's all ok, the problem is in some intersections
between the sides of the triangles of the mesh with the plans, sometimes all
right at times there is a error of the calculation of the position, I pulled
some data to be sure that there were no changes or translations.
From the image we can see the problem, the 2-ball should be on 2 segments but
are elsewhere, there is some setting that are clueless?
Does anyone have ideas?
I have tested the code whith 3.6 and 3.7

Image http://www.p3r.info/povray/test1.jpg

File for making the test:

global_settings {
   adc_bailout 3.9216e-05
   assumed_gamma 1.5
   max_trace_level 20
   noise_generator 2
}
//*PMRawBegin

#declare pl=plane{
y, 7.6
pigment{ color <1,0,0>}
}
pl
#declare p1=<0.3263,7.5234,0.5864>;
#declare p2=<0.3258,7.6827,0.4441>;
#declare p3=<0.2471,7.6968,0.4954>;
#declare c1=pigment{ color <0,1,0> }
#declare c2=pigment{ color <0,0,1> }
#declare c2a=pigment{ color <0,0.5,1> }
#declare c3=pigment{ color <0,1,1> }
cylinder{ p1,p2, 0.005 pigment{ c3 } }
cylinder{ p1,p3, 0.005 pigment{ c3 } }
sphere{ p1, 0.01 pigment{ c1 } }
sphere{ p2, 0.01 pigment{ c1 } }
sphere{ p3, 0.01 pigment{ c1 } }
sphere{ trace(pl,p1,p2), 0.01 pigment{ c2 } }
sphere{ trace(pl,p1,p3), 0.01 pigment{ c2a } }
//*PMRawEnd

light_source {
   <0.0535041, 8.53804, 1.97729>, rgb <1, 1, 1>
}

camera {
   perspective
   location <0.324006, 7.76436, 0.895641>
   sky <0, 1, 0>
   direction <0, 0, 1>
   right <1.33333, 0, 0>
   up <0, 1, 0>
   look_at <0.32028, 7.59371, 0.581751>
}


Post a reply to this message

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