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/
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/
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. *
*******************************