POV-Ray : Newsgroups : povray.general : normals function : Re: normals function Server Time
2 Nov 2024 17:20:17 EDT (-0400)
  Re: normals function  
From: Warp
Date: 9 Jan 2004 21:20:18
Message: <3fff6162@news.povray.org>
m1j <mik### [at] hotmailcom> wrote:
> Does povray have a built in function to calculate the norm of a triangle
> from 3 vectors?

  vcross(Vertex2-Vertex1, Vertex3-Vertex1)

> If not how whould I do this. I am not finding or understanding how to do
> this.

  Some high-school level math book is very useful for these things...

-- 
#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.