Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point dimensions #67

Closed
resema opened this issue Jul 27, 2016 · 2 comments
Closed

Point dimensions #67

resema opened this issue Jul 27, 2016 · 2 comments

Comments

@resema
Copy link

resema commented Jul 27, 2016

Hey Marcel

Just a small question =)

I'd like to pass points with 4 dimensions of informations, such as points in 3-dimensional space and a velocity at the control points. Is it possible to interpolate all 4 dimensions, and are there priorities set by the algorithm?

Best regards,
Renato

@msteinbeck
Copy link
Owner

I think you should be able to interpolate the desired function by setting up your control point array as follows: [x0, y0, z0, v0, x1, y1, z1, v1, ..., xn, yn, zn, vn] with x, y, z being a coordinate in 3D and v being the corresponding velocity. Pass the array to ts_bspline_interpolate and see what happens :) (in this example dim has to be 4 and n the length of your array.). However, since v simply is another kind of dimension, ts_bspline_interpolate should give you a valid result, though, I'm not entirely sure.

I have to mention that, currently, ts_bspline_interpolate always creates natural splines (should fit your case). Further types will be add in future, see #39.

@msteinbeck
Copy link
Owner

Closing this issue for now. Feel free to reopen if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants