POV-Ray : Newsgroups : povray.programming : smooth triangle normals : Re: smooth triangle normals Server Time
28 Jul 2024 10:27:43 EDT (-0400)
  Re: smooth triangle normals  
From: Warp
Date: 5 May 2002 13:03:33
Message: <3cd565e5@news.povray.org>

> But the moost difficult problem is to determine the orientation of these 
> normals.

  There's nothing difficult in determining the normal vector of a triangle.
It can be calculated with the cross-product of two of its edges. It's very
simple.

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