|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> 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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |