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