POV-Ray : Newsgroups : povray.binaries.images : how to : Re: how to Server Time
5 Nov 2024 10:22:32 EST (-0500)
  Re: how to  
From: Christoph Hormann
Date: 8 Sep 2005 10:10:02
Message: <dfpgnh$9di$1@chho.imagico.de>
m.o.p.s wrote:
> Could you tell me if there is a simple way to build this shape. It's inside 
> a torus when major radius < minor radius. I realise one macro ( the blu 
> shape ) but it's empty, i would like to have this shape filled.
> thank you

#include "functions.inc"

isosurface {
   function {
     f_sphere(x+0.5*sin(f_th(x,z,y)),y+0.5*cos(f_th(x,z,y)),z, 1.0)
   }
   contained_by { box{-1, 1} }
}

The 1.0 is the minor radius, the two 0.5 the major radius.

Christoph

-- 
POV-Ray tutorials, include files, Landscape of the week:
http://www.tu-bs.de/~y0013390/ (Last updated 24 Jul. 2005)
MegaPOV with mechanics simulation: http://megapov.inetart.net/


Post a reply to this message

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