POV-Ray : Newsgroups : povray.advanced-users : Isosurface problem. : Re: Isosurface problem. Server Time
2 Nov 2024 07:28:02 EDT (-0400)
  Re: Isosurface problem.  
From: Thomas Willhalm
Date: 14 Feb 2000 07:57:36
Message: <qqm66vsvt4v.fsf@schlatt.fmi.uni-konstanz.de>
"Simen Kvaal" <sim### [at] studentmatnatuiono> writes:

> 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
> 
>         }
[...]
> }
> 
> 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)
>         }
[...]
> }

I dont' know, but this works (at least with MegaPOV 0.4):

#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
        }

etc.

Thomas

-- 
http://thomas.willhalm.de/ (includes pgp key)


Post a reply to this message

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