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
[GL] Introducing class LineSegment. #1139
Conversation
72d7a21
to
23293a2
Compare
Jenkins: OGS-6/Gui/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Win-PRs/1439/ |
Jenkins: OGS-6/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Win-PRs/1462/ |
Just let you know the status of the PR:
valgrind: Unrecognised instruction at address 0x136f6ad5.
|
It seems valgrind failed because the test uses RDRAND instruction (__x86_rdrand()) which is on-chip hardware random number generator (see https://en.wikipedia.org/wiki/RdRand). As this is hardware dependent, valgrind may not suppose it in some hardware. see, e.g., https://bugs.launchpad.net/ubuntu/+source/valgrind/+bug/852795 I'm not sure how we can fix it. you may need to change some code in auto check where it specifies how to generate random numbers, i.e. change it to use some software random number generator. Alternatively, as a temporal solution, you may try valgrind on other computers. |
663848a
to
8dc858d
Compare
Jenkins: OGS-6/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Win-PRs/1516/ |
Jenkins: OGS-6/Gui/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Win-PRs/1494/ |
Jenkins: OGS-6/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Win-PRs/1518/ |
Jenkins: OGS-6/Gui/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Win-PRs/1496/ |
Currently I don't feel like I want to contemplate about your changes all by myself. I think this PR is a good candidate for a personal introduction by yourself to the reviewers (less thinking required on my side, and maybe it's faster). Of course, if others volunteered for reviewing without prior presentation, that would be fine, too. |
@chleh The main points of the PR are the changes to class Are you available tomorrow morning for an explanation? |
line_segment._point_mem_management_by_line_segment = false; | ||
} | ||
|
||
LineSegment::LineSegment() |
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.
This is no longer needed... ✅
Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/1657/ |
Jenkins: OGS-6/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Win-PRs/1535/ |
Jenkins: OGS-6/Gui/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Win-PRs/1524/ |
Jenkins, test this please. |
GeoLib::Point* intersection_pnt, | ||
std::size_t& seg_num) const; | ||
|
||
bool getNextIntersectionPointPolygonLine(GeoLib::LineSegment const& seg, |
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.
Could you please document the meaning of the Boolean return value, too. ✅
OpenGeoSys development has been moved to GitLab. |
PR improves the existing class
LineSegment
and establishs it at some places in theGeoLib
. The changes should improve the readability.Furthermore the PR introduces a
SegmentIterator
in classPolyline
. The iterator class allows to use algorithms from the standard library and makes the code more readable at some places.