-
Notifications
You must be signed in to change notification settings - Fork 11
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
Problem when interpolate direction vectors with rotation interpolation method #41
Comments
Your unit direction vectors have only 2 degrees of freedom, while 3D rotations and unit quaternions have 3. I don't think the I'm sure that most of what I derived for unit quaternions can similarly be derived for a "normal" sphere. I don't know the details, though. You can have a look at #5, which mentions an application with 2 degrees of freedom and it references this paper: https://doi.org/10.1016/S0010-4485(00)00049-X
Out of curiosity, which implementation was that? |
Hello, First, I updated the code when checking if interpolated samples cross the control points, use And I want to ask is there any problem in function
I tested the Squad(ShoemakeC1Spline) in interpolation-methods library. It seems just a directly implemenation of squad interpolation. By the way, I'm interested in your library because it discussed the centripetal parameterization, which has the very nice property that it guarantees no cusps and no self-intersections. Finally, thanks for your work! |
Those time values could be given when constructing a spline, but when using the
|
Hello,
I am tring to interpolate a set of unit direction vectors' endpoints with spline. It means that the spline will interpolate/cross each direction vector's endpoint on a unit sphere surface. The result will look like this picture,
I used the following process,
The problem is that the interpolated result seems not correct with some inputs. Below is my code and test data,
The output is,
When I plot the original direction vectors and sampled vectors, it shows that the problem more clearly,
test-data1,
test-data2,
Besides, I'm not that confident about the direction vector and quanterion conversion, and maybe also use this library's interpolation in wrong way. But it worked for part of test data, and I also tested other implmentation of Squad method and interpolated correctly when this library fails.
The text was updated successfully, but these errors were encountered: