POV-Ray : Newsgroups : povray.binaries.images : Quartic (30 kb jpeg) : Re: Tanglecube (7k) was Quartic Server Time
11 Aug 2024 05:14:42 EDT (-0400)
  Re: Tanglecube (7k) was Quartic  
From: Ben T  Scheele
Date: 1 May 2004 18:40:34
Message: <40942762@news.povray.org>
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


 

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