POV-Ray : Newsgroups : povray.binaries.scene-files : Making functions for natural cubic splines : Re: Making functions for natural cubic splines Server Time
30 Apr 2024 17:40:01 EDT (-0400)
  Re: Making functions for natural cubic splines  
From: Tor Olav Kristensen
Date: 15 Oct 2014 04:00:01
Message: <web.543e27af5b2bbe7bb9f9ec750@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> > "Bald Eagle" <cre### [at] netscapenet> wrote:
> > > A bigger improvement would be if I actually attached the file.  :\
> >
> > I've now modified that JustBasic file so that it makes a 2D plot of the X(T),
> > Y(T) and Z(T) splines.
>
> T.O.K. = "Quick study".  Nice work.
>
> Yeah, that's cool.
> I'm sure it would be a lot cooler if I understood what to do with that...
>
> Unfortunately, when I tried to:
>
> for p = 0 to N
>     #grid, "size 5"
>     #grid, "down"
>     #grid, "color pink"
>     #grid, "set "; XX(p); " "; YY(p)
>     #grid, "up"
> next p
>
> in that space to see where the original (x,y) coordinates would be, that didn't
> work out so hot.
>
> This must be some "T"-space, or "affine"-something-or-other that has to get
> mapped back into "x,y"-space, or something like that.
> Yeah.  That sounds good.
......

Hehe =)
Thank you

Use Abscissa(XX(p)), Ordinate(YY(p)) instead, like this:

#grid, "set "; Abscissa(XX(p)); " "; Ordinate(YY(p))

To show Origo, use this:

#grid, "set "; Abscissa(0); " "; Ordinate(0)

http://en.wikipedia.org/wiki/Abscissa

I didn't want to confuse further by introducing more Xs and Ys.

I can explain more later about the scaling and "mapping" that these two
functions do.

--
Tor Olav
http://subcube.com


Post a reply to this message

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