POV-Ray : Newsgroups : povray.advanced-users : re HF heights : Re: re HF heights Server Time
2 Nov 2024 03:13:41 EDT (-0400)
  Re: re HF heights  
From: Margus Ramst
Date: 1 Jul 2000 08:14:38
Message: <395DD2C3.D88FF82B@peak.edu.ee>
Mick Hazelgrove wrote:
> 
> Is there a way of finding the highest parts of a hf.  I don't just want
> everything above a certain height but the top of every bump.

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

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg


Post a reply to this message

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