POV-Ray : Newsgroups : povray.binaries.images : Helixouroboros (~63k) Server Time
3 Nov 2024 01:12:20 EDT (-0400)
  Helixouroboros (~63k) (Message 1 to 1 of 1)  
From: Quadhall
Subject: Helixouroboros (~63k)
Date: 31 Jul 2000 00:21:49
Message: <3984fedd@news.povray.org>
Another "quick" isosurface doodle --an abstract shape with a
psuedo-weathered appearance.  Thought the equations used might be of some
interest, so I am posting the code for this object below:

#declare spring=+3.00;
#declare major=+0.75;
#declare minor=+0.20;

#declare a = function{sqrt(x^2+z^2)-spring}
#declare b = function{atan2(z,x)*13}
#declare c = function{(sqrt(y^2+a^2)-major)}
#declare d = function{cos(b+atan2(y,a))+1}
#declare e = function{sqrt(c^2+d^2)-minor}

#declare pgmnt =
function
{
 pigment
  {
   granite  color_map  { [0 color rgb 0] [1 color rgb 1] }
   scale .333
   warp{toroidal orientation <0,1,0> dist_exp 0 major_radius spring }
  }
}

isosurface
{
 function {e-.07*pgmnt}
 contained_by{sphere {0,4.0}}
 eval
 method 2
 max_gradient 7
 threshold 0
 pigment{color rgb 1}
 finish{ambient .32}
}

Isosurfaces rule!

Quadhall


Post a reply to this message


Attachments:
Download 'plate_92.jpg' (43 KB)

Preview of image 'plate_92.jpg'
plate_92.jpg


 

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