POV-Ray : Newsgroups : povray.general : A little help about old vers. : Re: A little help about old vers. Server Time
18 Jun 2025 17:24:17 EDT (-0400)
  Re: A little help about old vers.  
From: Bald Eagle
Date: 18 Jun 2025 09:35:00
Message: <web.6852c07bce24a8bbd0f21c5825979125@news.povray.org>
"GioSeregni" <gms### [at] hotmailcom> wrote:

> General algorithms are no good in my opinion.
> They are recursive and have unintelligent ways.
> They consume memory.
> They exaggerate in the points that are already rich and perhaps are deficient in
> the points that need it most.

What you could do is test the distance between points, and points that are far
apart can get refined, and points that are close together can get skipped.

However, I'd suggest making it more sophisticated than that - test the curvature
along some distance on the surface.  Flat areas get skipped, and highly curved
areas get refined.   Find some way to appropriately weight the curvature vs
distance metrics.

Unnecessarily subdivided flat faces could be simplified into a single quad.

Not easy work - very tedious.  But well commented code and a flowchart of the
logic would help in future development.

- BE


Post a reply to this message

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