POV-Ray : Newsgroups : povray.newusers : Making A Heart : Re: Making A Heart Server Time
28 Jul 2024 22:21:54 EDT (-0400)
  Re: Making A Heart  
From: Alain
Date: 26 Jun 2007 20:10:58
Message: <4681ab12@news.povray.org>
Leroy nous apporta ses lumieres en ce 2007/06/25 23:33:
> 
> Caligula wrote:
>> I've been trying to model a heart-shaped box in POV-Ray, but even 
>> though I
>> have the vague idea that using splines would be a good idea, I have no 
>> idea
>> how. Could anyone give me any tips on that?
>>
>>
> 
> I'd use a prism:
> I have a Prism editor at my web site:
>  http://leroywhetstone.s5.com/
> 
> Here's a not very good example:
> 
> #declare Heart=prism{
> bezier_spline
> -0.1,0.1,24
> <0,-1.08>
> <0.266667,-0.773333> //___control___
> <0.733333,-0.466667> //___control___
> <1,0.48>
> <1,0.48>
> <1.17333,0.893333> //___control___
> <0.866667,1.10667> //___control___
> <0.493333,1.02667>
> <0.493333,1.02667>
> <0.186667,0.933333> //___control___
> <0.133333,0.72> //___control___
> <0,0.546666>
> <0,0.546666>
> <-0.0666667,0.693333> //___control___
> <-0.226667,0.96> //___control___
> <-0.56,1.05333>
> <-0.56,1.05333>
> <-0.853333,1.08> //___control___
> <-1.16,0.96> //___control___
> <-0.986667,0.52>
> <-0.986667,0.52>
> <-0.64,-0.493333> //___control___
> <-0.28,-0.773333> //___control___
> <0,-1.08>
> }
> 
The drawback is that you can only have a flat top. BUT, it does render somewhat 
faster. The isosurface solution by Mike offer you a rounded top, with the 
ability of adjusting the roundness to your liking.

-- 
Alain
-------------------------------------------------
BE ALERT!!!!  (The world needs more lerts ...)


Post a reply to this message

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