POV-Ray : Newsgroups : povray.binaries.images : Isosurface approximation MkII : Re: Isosurface approximation MkII Server Time
13 Aug 2024 09:31:39 EDT (-0400)
  Re: Isosurface approximation MkII  
From: Slime
Date: 9 Apr 2003 20:59:37
Message: <3e94c1f9$1@news.povray.org>
> I added support for smooth triangles but you
> have to provide all the formulae for the normal computatiom, so I'll be
> looking at a way to fix that, any suggestions would be appreciated.

If you have the formula for the object, the normal at a given point <x,y,z>
is

(<func(x+small_val,y,z),func(x,y+small_val,z),func(x,y,z+small_val)> -
<func(x,y,z),func(x,y,z),func(x,y,z)>) / small_val

Taken from memory, I might have screwed that up. It's basically just the
gradient of the function.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

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