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

x need to increase monotonically #18

Open
weifeng-sc opened this issue Aug 5, 2021 · 2 comments
Open

x need to increase monotonically #18

weifeng-sc opened this issue Aug 5, 2021 · 2 comments

Comments

@weifeng-sc
Copy link

I use this to smooth the path, but the x of the path point is not necessarily monotonically increasing. How should I deal with it?

@Gonzalo-Mier
Copy link

A bit late, but for anyone who is interested. If your path is 2d with x and y, with n points each, you should create another variable (for example, t) that goes from 1 to n. Then, create two splines with (t, x) and (t, y).

@pockerbot
Copy link

If using 2d, is there a way i can have arc length parameterization so that I can get points based on the arc length and not the t parameter ?

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

3 participants