POV-Ray : Newsgroups : povray.general : Q: Math : Re: Math Server Time
12 Aug 2024 07:21:19 EDT (-0400)
  Re: Math  
From: Rudy Velthuis
Date: 14 Mar 1999 12:21:03
Message: <36ebefff.0@news.povray.org>
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

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