POV-Ray : Newsgroups : povray.advanced-users : Isosurface problem. : Isosurface problem. Server Time
2 Nov 2024 07:26:05 EDT (-0400)
  Isosurface problem.  
From: Simen Kvaal
Date: 13 Feb 2000 16:54:51
Message: <38a7282b@news.povray.org>
Why does this work:



isosurface {
        function {
                (2*x^2+y^2+z^2-1)^3 - (0.1)*x^2*z^3-y^2*z^3

        }
        threshold 0
        accuracy 0.0001
        max_gradient 20
        max_trace 2
        contained_by { sphere { 0, 7 } }
        pigment {
                color Grey
        }
}

but not this:


#declare Heart =
    function {
                (2*x^2+y^2+z^2-1)^3 - (0.1)*x^2*z^3-y^2*z^3
    }

isosurface {
        function {
                Heart(x, y, z)

        }
        threshold 0
        accuracy 0.0001
        max_gradient 20
        max_trace 2
        contained_by { sphere { 0, 7 } }
        pigment {
                color Grey
        }
}

TIA

5k.


Post a reply to this message

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