-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 PolygonMesh::concatenate
and its unit test
#4745
Conversation
ensure that each vertex id in a polygon is always in the correct range
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the test would be simpler if (in lines 117-127) we were to use EXPECT_EQ_VECTORS
from common/pcl_tests.h
use EXPECT_EQ_VECTORS for simplicity
@kunaltyagi Thank you for your great suggestion! I've made changes accordingly. |
- refectored to copy gnd truth for modification - added comments
- moved the temp vector out of the loop - removed redundant comments
- used assignment operator instead - put brackets in one-liner foreach loop
The build process failed because of two failing tests which are irrelevant to this issue:
What can I do for this? |
Tagging @mvieth (Our first seeds for failing tests) |
PolygonMesh::concatenate
and its unit test
Great, I will investigate those. Although they failed on Windows, and the rand and srand implementations seem to be system dependent, so knowing the seeds might not help me with testing on Ubuntu. But I think I can still find out the causes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @taehongjeong !
) * Update PolygonMesh.h * Update test_polygon_mesh.cpp ensure that each vertex id in a polygon is always in the correct range * Update test_polygon_mesh.cpp use EXPECT_EQ_VECTORS for simplicity * Update test_polygon_mesh.cpp fix for the lambda capture issue (https://dev.azure.com/PointCloudLibrary/pcl/_build/results?buildId=18956&view=logs&j=8042da28-3549-5cef-c93d-1a000d12f42a&t=118ad2c4-6739-5a83-709b-f149f9853975&l=192) * Update test_polygon_mesh.cpp - refectored to copy gnd truth for modification - added comments * Update test_polygon_mesh.cpp - moved the temp vector out of the loop - removed redundant comments * Update test_polygon_mesh.cpp - used assignment operator instead - put brackets in one-liner foreach loop Co-authored-by: duhuanxianzi <duhuanncepu@163.com>
It is an addendum to and closes #4572.
Please also refer to the issue #4743.