POV-Ray : Newsgroups : povray.general : model of a Valentine's Day heart? Server Time
7 Nov 2024 15:36:55 EST (-0500)
  model of a Valentine's Day heart? (Message 1 to 5 of 5)  
From: Dwaine Gonyier
Subject: model of a Valentine's Day heart?
Date: 12 Feb 2002 23:37:00
Message: <3c69ed6c@news.povray.org>
Can someone provide or point to a good Pov-ray model of a heart?

No, I don't mean a human heart. :)

I would actualy like a 3D model of a typical Valentine's day heart.
I guess if I can't find one, I can do a crude one via a prism, but
I would much rather have a rounded "bubbly" looking one with a pointed
bottom.

EG (assuming you are reading this post with a fixed width font...)
 _  _
/ \/ \
\    /
 \  /
  \/

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...

Thanks.
-- 
Dwaine Gonyier
dwa### [at] mindspringcom


Post a reply to this message

From: Ken
Subject: Re: model of a Valentine's Day heart?
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

From:
Subject: Re: model of a Valentine's Day heart?
Date: 13 Feb 2002 03:29:59
Message: <it8k6uoco7t6vr9h6n49us4qjcs119jh6l@4ax.com>
On Tue, 12 Feb 2002 21:33:51 -0800, Ken <tyl### [at] pacbellnet> wrote:
> 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 =

This is also available as isosurface function in standard distribution of 3.5

ABX


Post a reply to this message

From: Tom Melly
Subject: Re: model of a Valentine's Day heart?
Date: 13 Feb 2002 09:00:40
Message: <3c6a7188$1@news.povray.org>
"Dwaine Gonyier" <dwa### [at] mindspringcom> wrote in message
news:3c69ed6c@news.povray.org...
> Can someone provide or point to a good Pov-ray model of a heart?
>

If
http://www.tomandlu.co.uk/webres/raytracing/gallery/pics/hearts.jpg
is any good for you, the source is at:
http://www.tomandlu.co.uk/webres/raytracing/gallery/hearts.pov


Post a reply to this message

From: Dwaine Gonyier
Subject: Re: model of a Valentine's Day heart?
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.