POV-Ray : Newsgroups : povray.general : Blobs to mesh conversion? : Re: Blobs to mesh conversion? Server Time
29 Jul 2024 18:24:23 EDT (-0400)
  Re: Blobs to mesh conversion?  
From: Warp
Date: 11 Dec 2010 05:07:45
Message: <4d034d70@news.povray.org>
[GDS|Entropy] <gdsHYentropyAThotmailDTcom> wrote:
> 2) Adaptively convert to mesh object (triangle or quadrangle or whatever  
> gives the best results at the best time based on geometry)

  Tesselation is a hard problem. Blobs are relatively easy to tesselate
(because they are finite and don't contain hard edges), but the tesselation
algorithm itself is non-trivial. The so-called marching triangles algorithm
is probably the best one, so you might search for that (but, as said, be
aware that it's a complicated algorithm). In your case the algorithm will
have to be implemented in POV-Ray SDL.

  You can use the inside() function to determine if a point is inside or
outside an object (eg. your blob) and the trace() function to find the
surface. These can probably be used in the tesselation algorithm.

-- 
                                                          - Warp


Post a reply to this message

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