|
![](/i/fill.gif) |
Ron Parker <ron### [at] povray org> 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
|
![](/i/fill.gif) |