|
![](/i/fill.gif) |
Alex,
I also came across that form, in a book actually. It is called
the "tanglecube", which you can find on Mathworld, at
mathworld.wolfram.com/Tanglecube.html . It is neat to see it again. I
used it in MegaPOV I think, so now I'll try it in POV 3.5.
-Ben Scheele
"Alex Kluchikov" <klk### [at] ukr net> wrote in message
news:408d0ae3@news.povray.org...
> Hello.
> Some time ago I was thinking about features of POV-Ray I've missed.
I
> wanted to learn POV-Ray and SDL features more deeply. There are a lot
of
> them, so, I decided to start with primitives. Here is the result of
quartic
> exploration. I like it and I hope, it is interesting for somebody.
> ------------------------
> #declare a=1;
> #declare b=-1.5;
> #declare R=1;
> quartic {
> <
> a,0,0,0,0,
> 0,0,0,0,b,
> 0,0,0,0,0,
> 0,0,0,0,0,
> a,0,0,0,0,
> b,0,0,0,0,
> a,0,b,0,R
> >
> sturm
> }
>
> ------------------------
>
> Sincerely Yours,
> Alex Kluchikov.
>
>
>
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Ben T. Scheele" <sch### [at] tc umn edu> wrote in message
news:40917e61$1@news.povray.org...
>
> I also came across that form, in a book actually. It is
called
> the "tanglecube", which you can find on Mathworld, at
> mathworld.wolfram.com/Tanglecube.html . It is neat to see it again.
I
> used it in MegaPOV I think, so now I'll try it in POV 3.5.
I had not realised how easy it could be converting an expression to
use in an isosurface.
This was my first attempt:
<Mathsworld>
A quartic surface given by the implicit equation
x^4 - 5x^2 + y^4 - 5y^2 + z^4 - 5z^2 + 11.8 = 0
</Mathsworld>
#declare Tanglecube =
function{ pow(x,4) + pow(y,4) + pow(z,4)
- pow(x,2)*5 - pow(y,2)*5 - pow(z,2)*5
+ 11.8 }
isosurface { function{ Tanglecube(x,y,z)-1 }
contained_by { box { -3, 3 } }
max_gradient 86
}
Alf
Post a reply to this message
Attachments:
Download 'Tanglecube.jpg' (7 KB)
Preview of image 'Tanglecube.jpg'
![Tanglecube.jpg](/povray.binaries.images/attachment/%3C4092c2b4%40news.povray.org%3E/Tanglecube.jpg?preview=1)
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
Yep, you got it, Alf! Isosurfaces rule, don't they? Here's what I did
using a few of them.
-Ben
> I had not realised how easy it could be converting an expression to
> use in an isosurface.
>
> This was my first attempt:
>
> <Mathsworld>
> A quartic surface given by the implicit equation
> x^4 - 5x^2 + y^4 - 5y^2 + z^4 - 5z^2 + 11.8 = 0
> </Mathsworld>
>
> #declare Tanglecube =
> function{ pow(x,4) + pow(y,4) + pow(z,4)
> - pow(x,2)*5 - pow(y,2)*5 - pow(z,2)*5
> + 11.8 }
>
> isosurface { function{ Tanglecube(x,y,z)-1 }
> contained_by { box { -3, 3 } }
> max_gradient 86
> }
>
> Alf
Post a reply to this message
Attachments:
Download 'Tanglecube-b.jpg' (49 KB)
Preview of image 'Tanglecube-b.jpg'
![Tanglecube-b.jpg](/povray.binaries.images/attachment/%3C40942762%40news.povray.org%3E/Tanglecube-b.jpg?preview=1)
|
![](/i/fill.gif) |