[Bf-committers] finding co-planer faces.
bf-committers@blender.org
bf-committers@blender.org
Sat, 24 Jul 2004 12:47:54 -0500
After you've tested the normals and found they are the
same, you can compute the plane equations and test to see
if they are equal (or close enough)
N - Normal for both faces
P0 - Point on first face
P1 - Point on second face
VECT_DOT( d0, N, P0 );
VECT_DOT( d1, N, P1 );
if (fabs (d1 - d0) < ERROR_LIMIT) {
faces are co-planer
}
--
Todd Koeckeritz, zaz@visi.com
Surfin' the Web with an ActiveX enabled browser is kindof like having
to worry about getting shot everytime you knock on a door.