POV-Ray : Newsgroups : povray.text.tutorials : re eggs Server Time
4 May 2024 18:32:08 EDT (-0400)
  re eggs (Message 1 to 1 of 1)  
From: Mick Hazelgrove
Subject: re eggs
Date: 31 Oct 1998 12:04:51
Message: <363b4333.0@news.povray.org>
People are always asking how to make eggs
Found a variation of this on the net
coul'nt resist posting it

/* Creates a squashed 'sphere' 200 units long towards +z and 300 towards -z.
*/
#declare egg = union{
sphere {<0,0,0>, 1 scale <200,150,150> clipped_by {plane {x,0}}
pigment{Red}}
sphere {<0,0,0>, 1 scale <300,150,150> clipped_by {plane {x,0 inverse}}
pigment{Yellow}}
}

object{egg scale 0.01 }

All The Best

Mick


Post a reply to this message

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