POV-Ray : Newsgroups : povray.general : model of a Valentine's Day heart? : Re: model of a Valentine's Day heart? Server Time
6 Aug 2024 19:31:07 EDT (-0400)
  Re: model of a Valentine's Day heart?  
From: Ken
Date: 13 Feb 2002 00:31:03
Message: <3C69FABF.17A46075@pacbell.net>
Dwaine Gonyier wrote:
> 
> Can someone provide or point to a good Pov-ray model of a heart?

This is a bit buggy and might produce a line of artifacts when viewed
at certain angles but it is a classic Valentine's Day heart shape.

#declare Heart =
   poly { 6,<
   8.0,0,0,0,12,0,0,12,0,-12,0,0,0,0,0,0,0,0,0,0,6,0,0,12,0,-12,0,0,0,0,6,
  -0.1,-12,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,3,0,-3,0,0,
   0.0,0,3,-1,-6,0,3,0,0,0,0,0,0,1,0,-3,0,3,0,-1>
   }

> Plus I don't know if there exists an (cubic?) equation that
> would give the surface of such a heart shape when ploted in
> xyz space...

6th order polynominal

cub(2*sqr(x)+sqr(y)+sqr(z)-1) - (0.1*sqr(x)+sqr(y))*cub(z)   


-- 
Ken Tyler


Post a reply to this message

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