POV-Ray : Newsgroups : povray.advanced-users : isosurface cone : Re: isosurface cone Server Time
30 Jul 2024 04:19:32 EDT (-0400)
  Re: isosurface cone  
From: Chris Huff
Date: 2 Mar 2000 16:45:39
Message: <chrishuff_99-87C2FA.16471402032000@news.povray.org>
In article <chrishuff_99-553B14.16260102032000@news.povray.org>, Chris 
Huff <chr### [at] yahoocom> wrote:

> In article <38bed613@news.povray.org>, "Mick Hazelgrove" 
> <mha### [at] mindaswinternetcouk> 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] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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