POV-Ray : Newsgroups : povray.advanced-users : isosurface cone Server Time
2 Nov 2024 09:18:21 EDT (-0400)
  isosurface cone (Message 1 to 5 of 5)  
From: Mick Hazelgrove
Subject: isosurface cone
Date: 2 Mar 2000 15:58:59
Message: <38bed613@news.povray.org>
Can anyone give me a formula for a vertical isosurface cone shape?

Mick

--
*************************************************************
       http://www.minda.swinternet.co.uk/index.htm

*************************************************************


Post a reply to this message

From: Chris Huff
Subject: Re: isosurface cone
Date: 2 Mar 2000 16:24:26
Message: <chrishuff_99-553B14.16260102032000@news.povray.org>
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

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


Post a reply to this message

From: Jetlag
Subject: Re: isosurface cone
Date: 2 Mar 2000 16:33:41
Message: <38bede35@news.povray.org>
> Can anyone give me a formula for a vertical isosurface cone shape?
>
> Mick

This is what I came up with:

isosurface {
  function { x^2 + z^2 - (y-1)^2/2 }
  contained_by { box { -<sqrt(2), 1, sqrt(2)>, <sqrt(2), 1, sqrt(2)> } }
  threshold 0

  pigment { rgb 1 }
}


Post a reply to this message

From: Chris Huff
Subject: Re: isosurface cone
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

From: Mick Hazelgrove
Subject: Re: isosurface cone
Date: 3 Mar 2000 02:32:52
Message: <38bf6aa4@news.povray.org>
thanks all - that'll do it

Mick

--
*************************************************************
       http://www.minda.swinternet.co.uk/index.htm

*************************************************************
"Jetlag" <bga### [at] microsoftcom> wrote in message
news:38bede35@news.povray.org...
> > Can anyone give me a formula for a vertical isosurface cone shape?
> >
> > Mick
>
> This is what I came up with:
>
> isosurface {
>   function { x^2 + z^2 - (y-1)^2/2 }
>   contained_by { box { -<sqrt(2), 1, sqrt(2)>, <sqrt(2), 1, sqrt(2)> } }
>   threshold 0
>
>   pigment { rgb 1 }
> }
>
>
>


Post a reply to this message

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