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

IndexOutOfRangeException: Index was outside the bounds of the array. #3

Open
HoussemEJ opened this issue Aug 27, 2022 · 0 comments
Open

Comments

@HoussemEJ
Copy link

HoussemEJ commented Aug 27, 2022

Reproduce this error by performing a gesture which has only 1 point. The error comes from this line [1] when the index value is -1. After further investigation I found out that creating a gesture via new Gesture(Points) will return a gesture with an array points initialized with NaN values.

[1]

matched[index] = true; // point index from the 2nd cloud is matched to point i from the 1st cloud

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

1 participant