POV-Ray : Newsgroups : povray.unofficial.patches : csg error with megapov's solid mesh? : Re: csg error with megapov's solid mesh? Server Time
2 Sep 2024 06:18:40 EDT (-0400)
  Re: csg error with megapov's solid mesh?  
From: Warp
Date: 30 Aug 2000 18:51:43
Message: <39ad8fff@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:
: For a closed mesh surface, fire a ray from outside the bounding box and check
: the normal.

  And hope that the ray hits the mesh? If it doesn't, shoot another ray? What
if after shooting 100 rays you still haven't hit the mesh? :)

  I think there should be a more "secure" way of doing it.

  I was thinking about how to make sure that the mesh really is closed. I think
that it's enough to check that every triangle has three and only three
adjacent triangles.
  It's not usual, but very possible that a triangle has more than three
adjacent triangles, but I think that in that case we are in trouble.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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