|
|
Margus Ramst wrote:
>
[...]
> A basic method in MegaPOV would be to get a grid of height values (using trace)
> and start comparing: if a point is higher than all 8 points around it (or 5
> points at the edges, or 3 points in the corner) it is the top of a bump.
> Of course it's a bit more complicated if you want more control, e.g. only
> consider convexities above a certain scale as "bumps".
>
That would produce quite a lot of points, because usual heightfields contain
quite a lot of local maxima.
HF-Lab contains a function for something quite similar, namely filling up local
minima, source code (in C) can be found at:
http://www.best.com/~beale/
Christoph
--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
|