|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |