POV-Ray : Newsgroups : povray.newusers : smooth triangles Server Time
13 Nov 2024 03:44:40 EST (-0500)
  smooth triangles (Message 1 to 3 of 3)  
From: Simon
Subject: smooth triangles
Date: 27 May 2001 08:15:28
Message: <3b10efe0@news.povray.org>
Hi,
How can I find the normals of a smooth triangle in a mesh?


Post a reply to this message

From: Warp
Subject: Re: smooth triangles
Date: 27 May 2001 11:18:41
Message: <3b111ad1@news.povray.org>
Simon <sim### [at] surfeude> wrote:
: How can I find the normals of a smooth triangle in a mesh?

  This question is not unambiguous.

  Do you mean that you have a smooth triangle mesh and you want to get the
normal vectors? You can use the PCM format for this (see
http://www.geocities.com/ccolefax/pcm.html).

  Or do you mean that you have a mesh of flat triangles and you want to
calculate normal vectors to smooth it? You can either use my mesh smoother
or see its documentation on how it is done (see
http://iki.fi/warp/PovUtils/smooth.html).

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


Post a reply to this message

From: Simon
Subject: Re: smooth triangles
Date: 27 May 2001 12:46:11
Message: <3b112f53@news.povray.org>
I have a mesh of flat triangles and want to smooth it.
The documentation of your mesh smoother helps me
a lot.

Thanks,
                  Simon


Post a reply to this message

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