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:33:52 EDT (-0400)
  Re: model of a Valentine's Day heart?  
From: Dwaine Gonyier
Date: 14 Feb 2002 18:20:03
Message: <3c6c4623$1@news.povray.org>
This seems to work quite nicely.

I did see some artifacts (FYI, I am using pov-ray 3.1g for windows), but they
seem to go away if I throw enough anti-aliasing at the render.

Thanks to you and everyone else that responded.



"Ken" <tyl### [at] pacbellnet> wrote in message news: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.