POV-Ray : Newsgroups : povray.general : Isosurface Server Time
10 Aug 2024 15:15:18 EDT (-0400)
  Isosurface (Message 1 to 6 of 6)  
From: Ed Kaiser
Subject: Isosurface
Date: 18 Dec 1999 18:10:26
Message: <385c1462@news.povray.org>
could someone please post an example of an isosurface using a pattern in the
function? I can't get the syntax right and it's driving me crazy.


Post a reply to this message

From: Chris Huff
Subject: Re: Isosurface
Date: 18 Dec 1999 18:22:28
Message: <chrishuff_99-1C3166.18230418121999@news.povray.org>
In article <385c1462@news.povray.org>, "Ed Kaiser" 
<eka### [at] camdentdsnet> wrote:

> could someone please post an example of an isosurface using a pattern in 
> the function? I can't get the syntax right and it's driving me crazy.

#declare MyPigment =
pigment {bozo
    color_map {[0 color Black][1 color White]}
}

isosurface {
    function {pigment {MyPigment}}
or
    function {
        pigment {bozo
            color_map {[0 color Black][1 color White]}
        }
    }
    threshold 0.3
    ...
}

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Ed Kaiser
Subject: Re: Isosurface
Date: 18 Dec 1999 19:03:04
Message: <385c20b8@news.povray.org>
...and how do you add it to and equation like x^2+y^2+z^2-1 ?


Post a reply to this message

From: Chris Huff
Subject: Re: Isosurface
Date: 18 Dec 1999 19:37:25
Message: <chrishuff_99-42DA44.19380218121999@news.povray.org>
In article <385c20b8@news.povray.org>, "Ed Kaiser" 
<eka### [at] camdentdsnet> wrote:

> ...and how do you add it to and equation like x^2+y^2+z^2-1 ?

Just add it in.
Do something like this:
#declare MyPigmentFunction =
function {
    pigment {agate
        color_map {[0 color Black][1 color White]}
    }
}

isosurface {
    function {x^2+y^2+z^2 - 1 + 
        MyPigmentFunction(x, y, z)*0.5
    }
    threshold 0
    ...
}

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Jerome M  BERGER
Subject: Re: Isosurface
Date: 18 Dec 1999 19:37:30
Message: <385C2874.499B88CE@enst.fr>
Ed Kaiser wrote:
> 
> ...and how do you add it to and equation like x^2+y^2+z^2-1 ?

#declare f = function { pigment {...}}
...
function {x^2+y^2+z^2-1+f(x, y, z))
...

		Jerome
-- 
*******************************

* they'll tell you what can't * mailto:ber### [at] inamecom
* be done and why...          * http://www.enst.fr/~jberger
* Then do it.                 *
*******************************


Post a reply to this message

From: Ed Kaiser
Subject: Re: Isosurface
Date: 18 Dec 1999 20:06:10
Message: <385c2f82@news.povray.org>
Thanks so much for your answers. I was missing something and couldn't figure
out what.



P.S. I did read the docs.


Post a reply to this message

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