POV-Ray : Newsgroups : povray.unofficial.patches : Tesselation and mesh data extraction patches : Re: Tesselation and mesh data extraction patches Server Time
13 May 2024 09:50:24 EDT (-0400)
  Re: Tesselation and mesh data extraction patches  
From: Warp
Date: 15 Dec 2000 06:38:48
Message: <3a3a02c7@news.povray.org>
Chris Huff <chr### [at] maccom> wrote:
: BTW, do you think there is a need for more insideness-testing methods? 

  You'll have to ask Nathan. I don't know anything about the inside_vector
thing. I just copied the inside_vector reading code from his patch.

  Thinking about it, perhaps it could be better to put the tesselation
inside the mesh block as you suggest. The tesselation routine would just
add the triangles to the mesh.
  This way it would be possible to make everything you can make to a mesh
without having to copy any code.
  It would also allow tesselating several objects into one mesh and even
add individual triangles to it.

  I'm liking your idea. It shouldn't be extremely difficult to implement
either.

  Perhaps something like:

mesh
{ triangle { ... }
  smooth_triangle { ... }
  tesselate
  { OBJECT
    [accuracy VECTOR]
    [smooth]
    [offset FLOAT]
  }
  OBJECT_MODIFIERS
}

  Thinking about it, it wouldn't be difficult at all to implement that.
Instead of expecting a 'tesselate' keyword at general level it's enough
to expect it inside Parse_Mesh().

  Btw, the tesselation code has some strange bug right now which I'm unable
to find. Damn it.

-- 
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.