POV-Ray : Newsgroups : povray.binaries.images : abstract wallpaper : Re: abstract wallpaper Server Time
14 Nov 2024 00:18:01 EST (-0500)
  Re: abstract wallpaper  
From: Tek
Date: 16 Apr 2004 03:29:56
Message: <407f8b74@news.povray.org>
"Daniel Patrick Johnson" <zap### [at] hotmailcom> wrote:
> I do like it.  How did you make the dimple?

It's CSG using a squashed torus, thus:

union {
 #declare d = 1; //depth of curve
 #declare r = 2; //width of curve
 difference {
  plane { -z, d }
  cylinder { -z*d*2, 0, 1+r }
  sphere { 0, 1 }
 }
 torus { 1+r, r rotate x*90 scale <1,1,d/r> }
}


-- 
Tek
www.evilsuperbrain.com


Post a reply to this message

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