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

Test uniform redistribution of points #5

Open
robz opened this issue May 24, 2015 · 0 comments
Open

Test uniform redistribution of points #5

robz opened this issue May 24, 2015 · 0 comments

Comments

@robz
Copy link
Owner

robz commented May 24, 2015

Currently, optimization minimizes an error function that is computed by comparing two lists of points--the list from the input path that you draw, and the list that is generated by a trace point on the linkage. In this scheme, points are nonuniformly distributed along the path that was drawn (due to nonuniform mouse movement while drawing the path) or traced (since the linkage's trace point might move faster along a portion of its path and slower along another portion).

This nonuniformity causes the error function to be "weighted" towards clusters of points, which is often unintentional. I think this weighting can be eliminated if each path were regenerated to make the euclidean distance between each point be equal, which can be accomplished through linear interpolation. An added benefit to this is that the user would only need to provide a few point for the path, and the rest will be generated.

However, simple linear interpolation would also remove the user's ability to describe the speed of the tracepoint, and remove any speed constraints on the output path. Allowing that may require the user to provide a list of speeds or vectors along with the points, generating a series of parameterized quadratic paths, and interpolating based intervals of the parameter, rather than some fixed euclidean distance. But that would be a bit involved.

Anyway, it would be interesting to see if uniform redistribution helps the optimization.

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

No branches or pull requests

1 participant