Mail Archives: djgpp/1997/05/14/05:50:07
KaRNaGE (dlydiard AT linknet DOT kitsap DOT lib DOT wa DOT us) writes:
> i was wondering how i could use cross_product() to get the normal of a
> vector (x, y, z)...and the normal of a face (triangle)...thankz...
Given three points of the triangle, make two vectors, of the form p1-p2
and p1-p3, cross product them, the new vector is at right angles and hence
a normal.
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -