POV-Ray : Newsgroups : povray.general : Calculate normal vector? : Re: Calculate normal vector? Server Time
1 Aug 2024 14:29:55 EDT (-0400)
  Re: Calculate normal vector?  
From: Tim Nikias
Date: 8 Sep 2005 09:59:14
Message: <432043b2$1@news.povray.org>
As far as I can tell, the code is correct. But if your triangles are flat,
why not use "triangle" instead of "smooth_triangle"?

Like so:
> #declare v1=<-6.3,1.67916373510155,-0.1>;
> #declare v2=<-5.1,1.60116644662657,-0.1>;
> #declare v3=<-4.4,0.327210734868637,0>;
> triangle  { v1 v2 v3
>  material { Gri  scale 1 }
>           no_reflection
> }

It makes no sense to use smooth_triangle when you're not actually "bending"
the normals.

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

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