POV-Ray : Newsgroups : povray.general : Equations : Re: Equations Server Time
8 Aug 2024 10:19:47 EDT (-0400)
  Re: Equations  
From: Warp
Date: 18 Jan 2001 07:06:48
Message: <3a66dc58@news.povray.org>
J-Print News <vir### [at] iconcoza> wrote:
: Not raytracing. I just need the mathematical functions to work out if a
: point is on the surface.

  That's easy.
  An isosurface is defined by a function f(x,y,z) and a threshold value 'n'
(which is constant).
  A point <x,y,z> is inside the object if the value of f at that point is
less than 'n'.
  A point <x,y,z> is outside the object if the value of f at that point is
greater than 'n'.
  A point <x,y,z> is exactly in the surface of the object if the value of
f at that point is 'n'.

-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

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