POV-Ray : Newsgroups : povray.binaries.images : Happy Easter! (~200KB) : Re: Happy Easter! (~200KB) Server Time
14 Nov 2024 02:25:13 EST (-0500)
  Re: Happy Easter! (~200KB)  
From: laurent artaud[AT]free fr
Date: 12 Apr 2004 02:26:13
Message: <407a3685@news.povray.org>
> These eggs are nothing more than squashed spheres. I have no idea how to 
> make an authentic egg shape. (But I imagine it would involve isosurfaces 
> - and be very very slow!)

No need! Simply use CSG:

#declare bottom =
   intersection {
     sphere { 0, 1 }
     plane { y, 0}
   }

#declare top =
   difference {
     sphere {
       0, 1
       scale <1, 1.6, 1>
     }
     plane { y, 0 }
   }

#declare Egg =
   union {
     object { top }
     object { bottom }
   }

You just have to adjust the y scale factor in the top part to suit your 
needs.

Regards,

-- 
Laurent ARTAUD (lau### [at] freefr)


Post a reply to this message

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