POV-Ray : Newsgroups : povray.binaries.images : For Hugo. Irregular mesh smoothing idea. : Re: For Hugo. Irregular mesh smoothing idea. Server Time
16 Aug 2024 14:27:01 EDT (-0400)
  Re: For Hugo. Irregular mesh smoothing idea.  
From: Tor Olav Kristensen
Date: 6 Mar 2002 19:04:25
Message: <3C86ACB1.FF58C201@hotmail.com>

> 
> On Tue, 5 Mar 2002 09:12:47 -0600, "Shay" <sah### [at] simcopartscom> wrote:
> > The weighted normals look better. Is this the case with every mesh?
> 
> This is just more accurate method of averaging.
> 
> > This goes against everything I have seen concerning mesh normals.
> 
> Not exactly. Weighting is just longer and result is visible when there are
> differences in triangle area.
> 
> > By a weighted average, do you mean simply not normalizing the normal of each
> > triangle?
> 
> Considering you have N triangles with vertex P:
> - take all N normals as previously
> - normalize them as previously
> - new step: multiply/adjust according to area of triangle
> - add all N normals as previously
> - normalize this sum as previously (I'm not sure it is necessary)
> 
> So only new thing is muliplying. This is done to save larger triangles more
> float.

Wlodek,
if the triangle normals are calculated
with cross products, then step 2 and 3
above are not necessary.

Also see my reply in this thread to Josh
Seagoe some minutes ago:

http://news.povray.org/%3C3C86A730.785EA5C1%40hotmail.com%3E
news://news.povray.org/3C86A730.785EA5C1%40hotmail.com


Tor Olav


Post a reply to this message

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