POV-Ray : Newsgroups : povray.general : Q: Math : Re: Math Server Time
12 Aug 2024 07:19:00 EDT (-0400)
  Re: Math  
From: Margus Ramst
Date: 14 Mar 1999 12:03:49
Message: <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

If not, I might still have the solution but I dont quite understand what you
need...

Margus


Post a reply to this message

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