POV-Ray : Newsgroups : povray.general : Odd behavior of 1/sqrt functions in iso_surface : Re: Odd behavior of 1/sqrt functions in iso_surface Server Time
3 Aug 2024 10:18:55 EDT (-0400)
  Re: Odd behavior of 1/sqrt functions in iso_surface  
From: Lutz-Peter Hooge
Date: 9 Mar 2004 08:20:25
Message: <404dc499$1@news.povray.org>
Richard Kline <rkl### [at] earthlinknet> wrote:

> 1) If the contained_by shape is larger than the true surface for the 
> given threshold value, the entire contained_by shape (either box or 
> sphere) is rendered as part of the surface.

By default isosurfaces are solid objects, AFAIK every point where the 
function evaluates to something greater than zero is considered to be 
inside.
If you only care about the surface itself, you may want to use the 
'open' keyword. Or use the negative of the function to invert inside 
and outside.

> Since the Gravitational potential is a function of 1/r the function used 
> is 1/sqrt(x*x+y*y+z*z)

This is the function for a singularity. It might cause problems with the root 
solver, since it doesn't really have a maximum gradient.
In this case you might want to use the function for a hollow sphere with a 
radius of R instead. 
Thats is  1/r for r > R
          1/R for r <= R

Lutz-Peter


Post a reply to this message

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