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

fix bug that the min and max elem in middleSplit_ is wrong sometimes. #231

Closed
wants to merge 2 commits into from

Conversation

YongZouGN
Copy link

if span is always equal to max_span and equal to 0,if condition(span > (1 - EPS) * max_span) is always false, the min_elem and max_elem are always the default initailized value 0, this is a bug. so the max_elem and min_elem should inlitialized while setting max_span.
This bug could be occur while there all the points which has the same location(x,y,z).

…ometimes.

if  span is always equal to max_span and equal to 0,if condition(span > (1 - EPS) * max_span) is always false, the  min_elem and max_elem are always the default initailized value 0, this is a bug. so the max_elem and min_elem should inlitialized while setting max_span.
This bug could be occur while there all the points which has the same location(x,y,z).
fix bug that the min and max elem in  function middleSplit_ is  wrong sometimes.
@YongZouGN
Copy link
Author

test data, a large numer of points which have the same negative coordinate could trigger this issue

@YongZouGN YongZouGN closed this Feb 4, 2024
@jlblancoc
Copy link
Owner

Hi @YongZouGN !
Sorry for not coming back sooner. If this remains being a real bug, please, add a minimal unit test case that fails with the current code, and gets fixed with your patch and we'll review it.

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

Successfully merging this pull request may close these issues.

2 participants