BUG: Fix regression in PolygonSpatialObject::IsInsideInObjectSpace#2422
BUG: Fix regression in PolygonSpatialObject::IsInsideInObjectSpace#2422rflanz wants to merge 1 commit intoInsightSoftwareConsortium:releasefrom
Conversation
|
I have not created a test for this yet, but it is possible maybe to create one from the same tests that we found this issue in. Please let me know if adding a test is required. |
dzenanz
left a comment
There was a problem hiding this comment.
A fix is better than no fix, but a test is highly desirable.
|
👍 for a test to ensure the issue has been addressed and stays addressed. |
|
@rflanz thanks for the contribution! |
dzenanz
left a comment
There was a problem hiding this comment.
Great effort! This only needs minor changes given in-line.
|
You might replace |
1750442 to
6740044
Compare
There was a problem hiding this comment.
Thanks for doing this @rflanz !! Testing is essential to any software and ITK strives to extensively test its code base.
A few inline comments with the aim of improving the style and making it consistent with the ITK coding style: https://itk.org/ItkSoftwareGuide.pdf (Appendix Three; more especially Section C.23).
Let me know if I can help somehow.
Keep up the good work 💯.
6740044 to
5f6e558
Compare
jhlegarreta
left a comment
There was a problem hiding this comment.
@rflanz thanks for having addressed many of the previous review comments. A few more. Hope they make sense. Thanks.
5f6e558 to
b332cd1
Compare
jhlegarreta
left a comment
There was a problem hiding this comment.
Starting to converge ⏩. Another inline comment.
Thanks for the patience and hard work @rflanz !
This is a followup to the bugfix for issue InsightSoftwareConsortium#1082 where there was a regression in the code on determining the inside/outsideness of points. There are some cases where the algorithm still fails as there are two boundary checks in the code which should be identical. 1. Test on adjacent segment pairs from start to finish 2. Test on segment pair from finish point to start point on closed polygons. The previous bugfix fixed the code in item 1, but did not update the check (which should be identical in item 2). This should address this issue making both boundary on segments the same. BUG: Add testing for regression itkPolygon::ObjectIsInsideObjectSpaceTest Regression STYLE: ApplyClangFormat STYLE: fix white space in CMakeLists.txt STYLE: Adjust text STYLE: Address Pull Request Comments STYLE: Follow somore more style guidelines STYLE: address more PR comments
b332cd1 to
2514f83
Compare
|
/azp run ITK.Windows.Python |
|
Not sure why the Circle CI looks to be having other types of issues, as the message I've noticed that this branch is 446 commits behind Cannot investigate more than that. |
|
This is a PR based on 5.1.2 into |
|
Okay, I am not clear on what needs to be done next. Have I asked for merge to the wrong branch? Let me know if there is anything I can do, and I will get on top of it. Thanks. |
|
I think the failures are unrelated to the PR. I checked it out and I will build it locally. |
|
I will also probably make a variant for the master branch at the same time. |
|
Multi-line comment issue has been fixed in master. And Python build problem cannot open file 'python39.lib' has nothing to do with this PR. |
|
Ok, Great Thanks to all of the team on ITK. |
@rflanz glad to read this 👍 . Fixes and contributions are always welcome. I grant that our software process is at times demanding. We're happy to help. And sorry not having given approval; I was cautious about the failing checks. |
|
Closing in favor of #2453. |
This is a followup to the bugfix for issue #1082 where there was a
regression in the code on determining the inside/outsideness of points.
There are some cases where the algorithm still fails as there are two
boundary checks in the code which should be identical.
polygons.
The previous bugfix fixed the code in item 1, but did not update the
check (which should be identical in item 2).
This should address this issue making both boundary on segments the same.
PR Checklist
Refer to the ITK Software Guide for
further development details if necessary.