|
|
Margus Ramst schrieb in Nachricht <36ebebf5.0@news.povray.org>...
>Err... Every time I read a mathematical problem like this I feel kind of
>stupid... Am I correct in assuming that you want to calculate the surface
>normal of a triangle, whose vertices are given?
>If so, try this (untested and you migh have to swap V2 and V3)
>
>#macro Norm(V1,V2,V3)
> vnormalize(vcross(V2-V1,V3-V1))
>#end
I think this is right. I wanted to give the same answer, but didn't know the
exact formula for the cross product anymore. Didn't know POV-Ray had a
function for it.
--
Rudy Velthuis
Post a reply to this message
|
|