In article <chrishuff_99-553B14.16260102032000@news.povray.org>, Chris
Huff <chr### [at] yahoo com> wrote:
> In article <38bed613@news.povray.org>, "Mick Hazelgrove"
> <mha### [at] minda swinternet co uk> wrote:
>
> > Can anyone give me a formula for a vertical isosurface cone shape?
>
> Try something like:
> function {sqrt(sqr(x) + sqr(z)) - abs(y)}
> threshold 0
I forgot something...if you want to set the limits on the cone length,
you can use something like:
#declare HeightA = -1.2;
#declare Length = 1;
...
function {
(sqrt(sqr(x) + sqr(z)) - abs(y))
&(-y+HeightA)
&(y-HeightA-Length)
}
threshold 0
--
Chris Huff
e-mail: chr### [at] yahoo com
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|