POV-Ray : Newsgroups : povray.binaries.images : Helical SDF for Isosurfaces : Re: Helical SDF for Isosurfaces Server Time
4 Jan 2025 18:11:27 EST (-0500)
  Re: Helical SDF for Isosurfaces  
From: William F Pokorny
Date: 28 Dec 2024 06:32:04
Message: <676fe1b4$1@news.povray.org>
On 12/27/24 09:27, Chris R wrote:
> My question would be, (and I should look at the pov code at some point to
> check), when an isosurface is being evaluated, are there cases where -0 is
> supplied to the isosurface function?

Might be. It depends on the function(s) being used in the isosurface and 
what x,y,z values you might see given, environmental-usage of the 
isosurface. Also, potentially, on the build compile for the executable.

Using the f_boom() inbuilt in the yuqk fork:

//--- Should be the f_sphere() version of this will run in v3.8 beta 2
#version 3.8;
#include "functions.inc"
isosurface {
     function { f_boom(x/-2,y,z,0/-2,0,0) }
   //function { f_sphere(x/-2,y,z-1,0.1) }
     contained_by { box { -2.0,2.0 } }
     threshold 0
     accuracy 0.0005
     max_gradient 1.1
     finish { emission 1.0 }
}
//---

f_boom
1(x) -> -0,
2(y) -> 0,
3(z) -> 0,
4(0) -> -0,
5(1) -> 0,
6(2) -> 0

Bill P.


Post a reply to this message

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