POV-Ray : Newsgroups : povray.advanced-users : Normal vector deformation : Normal vector deformation Server Time
29 Jul 2024 20:26:12 EDT (-0400)
  Normal vector deformation  
From: Rune
Date: 13 Jan 2001 17:04:27
Message: <3a60d0eb@news.povray.org>
I'm working on some deformation macros that deforms the point vectors and
the normal vectors in a mesh.

Deforming the points is easy. Deforming the normals is a bit more
complicated.
To find a deformed normal I try to find the deformed points very close to
the start point of the normal, and see how the direction changes. However, I
can't figure out quite how to do it.

Say the macro Deform(V) will return a deformed version of V.
If I have the point P I can find the deformed point dP:
#declare dP = Deform(P)

If I have the normal N, how can I find the deformed normal dN?

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 6)
/ Also visit http://www.povrayusers.org


Post a reply to this message

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