POV-Ray : Newsgroups : povray.newusers : triangle normal Server Time
27 Dec 2024 02:39:17 EST (-0500)
  triangle normal (Message 1 to 2 of 2)  
From: Rafal 'Raf256' Maj
Subject: triangle normal
Date: 10 Jul 2002 19:13:38
Message: <Xns9248BE97CC00raf256com@204.213.191.226>
Hi,
i have a triangle declared by w1, w2, w3 (w1=<x1,y1,z2> etc) how can I 
calculate it's normal ?

-- 


Post a reply to this message

From: Warp
Subject: Re: triangle normal
Date: 10 Jul 2002 20:27:50
Message: <3d2cd106@news.povray.org>
Rafal 'Raf256' Maj <raf### [at] raf256com> wrote:
> i have a triangle declared by w1, w2, w3 (w1=<x1,y1,z2> etc) how can I 
> calculate it's normal ?

  vcross(w2-w1, w3-w1)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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