realbasic-games
[Top] [All Lists]

Re: Vertex Normals to Face Normals

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Vertex Normals to Face Normals
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Mon, 3 Oct 2005 08:29:34 -0600
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <05BF22B2-E499-4F81-9F25-2D04B3BC89E2 at miensoftware dot com>
At 1:03 PM -0700 10/2/05, Lo Saeteurn wrote:

How do I go about getting the face normal from the three vertex normals of the same face?

You want to create the face normal from the three vertex positions, not the three vertex normals. But if your goal is to just see whether the face normal needs to be flipped, then compute the average of the three vertex normals, and choose which face normal (flipped on not flipped) makes the smallest angle with this average.

HTH,
- Joe

--
Joe Strout                          REAL Software, Inc.

Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>