POV-Ray : Newsgroups : povray.unofficial.patches : Suggestions for spline function implementation Server Time
2 Sep 2024 04:13:07 EDT (-0400)
  Suggestions for spline function implementation (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Chris Huff
Subject: Re: Suggestions for spline function implementation
Date: 24 Jul 2000 15:04:29
Message: <chrishuff-6E6438.14050824072000@news.povray.org>
In article <397BB8B8.C551A8D3@skynet.be>, Fabien Mosen 
<fab### [at] skynetbe> wrote:

> I gave it another try, but but but : 
>  - it's impossible to pass a spline identifier as a #macro parameter
>  - it's impossible to #declare a point :
>          #declare Point = SplineIdent (Value);

These are bugs, of course...hopefully they will be fixed soon. And I 
think there is a workaround for the second one:
#declare Point = <0,0,0> + SplineIdent(Value);


>  - and I still miss the "linear natural cubic" quality of the other
>    splines.  (and if I write a #macro to evenly distribute the "samples"
>    along the spline, the parsing times will go trough the roof, as it
>    does, alas, when using Kari's #macro).

And this is just a missing feature. The point I was trying to make is 
that the *syntax* is far better, and that this spline patch could easily 
be extended to do these things.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Fabien Mosen
Subject: Re: Suggestions for spline function implementation
Date: 24 Jul 2000 15:18:44
Message: <397C956F.30D79D44@skynet.be>
Kari Kivisalo wrote:
> 
> Until this feature is added to megapov try changing the tolerance
> value near the end of the macro. I haven't tested this but reasonably
> even distribution should be possible with 0.05.

Your macro works fairly well for me, but its parsed nature makes
it a little difficult to use when doing many (80+) splines, as
parsing times get loooong (well, at least too long for trial/error
testing).

I finally managed to get the things to work, using your macro
for the 3 control splines, and using the "alternate" spline
function for the numerous splines.

So, thanks.

Fabien.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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