POV-Ray : Newsgroups : povray.binaries.images : Quartic (30 kb jpeg) : Tanglecube (7k) was Quartic Server Time
18 Nov 2024 16:20:23 EST (-0500)
  Tanglecube (7k) was Quartic  
From: Alf Peake
Date: 30 Apr 2004 17:18:44
Message: <4092c2b4@news.povray.org>
"Ben T. Scheele" <sch### [at] tcumnedu> 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


 

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