POV-Ray : Newsgroups : povray.advanced-users : Calculating curvature of a surface? : Re: Calculating curvature of a surface? Server Time
2 Nov 2024 09:19:12 EDT (-0400)
  Re: Calculating curvature of a surface?  
From: Kevin Wampler
Date: 3 Dec 1999 09:51:41
Message: <3870B85F.5D8D2002@tapestry.tucson.az.us>
Chris Huff wrote:

> Ok, I mostly understood that-but what is sigma, other than a greek
> letter?

I just meant summation, but was unsure how to notate it.

>
> If I understand this correctly, I should divide the angle between the
> normal of each sample and the normal at the evaluation point by the
> distance of the sample from the evaluation point, total these up, and
> divide by the number of samples. Um, never mind, easier for me to think
> this way(pseudocode follows):
>
> SPoint = sample point
> EPoint = evaluation point
> total = 0;
> while(taking N samples)
> {
>    S = distance of SPoint from EPoint
>    theta = angle between normal at SPoint and normal at EPoint
>    total += theta/S;
> }
> result = total/N;
>
> Is this right?

Well, I don't know if the formula itself is right, but you certainly did
understand what I said correctly.  I wonder if there might be a way that
would require less samples though?  Oh well, I'm not going to be able to
find it.


Post a reply to this message

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