Skip to content

Conversation

@staudtMarius
Copy link
Member

Resolves #1016

@staudtMarius staudtMarius added the enhancement New feature or request label Feb 21, 2024
@staudtMarius staudtMarius added this to the Version 5.0 milestone Feb 21, 2024
@staudtMarius staudtMarius self-assigned this Feb 21, 2024
Copy link
Member

@sebastian-peter sebastian-peter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. To be honest, I don't get the point. You're separating the functionality into two methods - ok, fine. But this is not more efficient, actually.

Now we're calculating distances.stream().filter(c -> !corners.contains(c)) on top of what we've been doing before. This had been part of the List<CoordinateDistance> other before.

@staudtMarius
Copy link
Member Author

staudtMarius commented Feb 23, 2024

My idea with this PR is to have the part of finding the corners to be accessible from outside. But I see your point. I changed it with the next commit.

I also added a method that can be used to just return the corner points or an exact matching point. The reason for this is, that in SIMONA we get a list of points, that may contain only our corner points, and then we calculate the corner points again.
With the new method we just return the found corner points. Because of that we just need to check the size of the list in SIMONA.
This could also help with #625.

Edit SP: ie3-institute/simona#625

…-corner-points-in-IdCoordinateSource' into ms/#1016-improvements-to-finding-corner-points-in-IdCoordinateSource
Copy link
Member

@sebastian-peter sebastian-peter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one request from my side for now, will look deeper into it later at some point

Copy link
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one question to the docs...

Copy link
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good to me, thanks for your work done here!

@danielfeismann danielfeismann merged commit 2ec2f79 into dev May 1, 2024
@danielfeismann danielfeismann deleted the ms/#1016-improvements-to-finding-corner-points-in-IdCoordinateSource branch May 1, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improvements to finding corner points in IdCoordinateSource

4 participants