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

Geometry_Engine: Add shortest path algorithm #3165

Merged
merged 10 commits into from
Sep 1, 2023

Conversation

albinber
Copy link
Contributor

@albinber albinber commented Sep 1, 2023

NOTE: Depends on

Issues addressed by this PR

Closes #2826

Test files

Changelog

Additional comments

@albinber albinber changed the title Geometry_ngine Add shortestpath algoritm Geometry_Engine: Add shortestpath algoritm Sep 1, 2023
@albinber albinber self-assigned this Sep 1, 2023
@albinber albinber added the type:feature New capability or enhancement label Sep 1, 2023
@albinber
Copy link
Contributor Author

albinber commented Sep 1, 2023

@BHoMBot check compliance

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

@albinber to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

There are 22 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

@albinber fix requested for copyright headers.

The errors with the copyright headers on the CS (.cs) files have been recorded as annotations on the checks tab.

I will apply the fixes to every case detailed on the checks tab. If you want to perform the fixes in a different manner please resolve this manually and rerun the check.

Each CS (.cs) file that does not have the current copyright header will have it applied. The current copyright header can be examined here.

If you are happy for me to go ahead and perform this action, please reply with:

@BHoMBot fix copyright headers ref. 16412106428

@albinber
Copy link
Contributor Author

albinber commented Sep 1, 2023

@BHoMBot fix copyright headers ref. 16412106428

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

@albinber I have queued up your request to fix copyright headers. There are 0 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

@albinber I am now going to fix the copyright compliance in accordance with the annotations previously made.

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

@albinber to confirm I have now resolved the copyright compliance and pushed a commit to this Pull Request.

@albinber
Copy link
Contributor Author

albinber commented Sep 1, 2023

@BHoMBot check compliance

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

@albinber to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

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

Welcome to BHoM @albinber - great to have you here! A great first pull request - some small changes to the code structure (my favourite, blank lines 😉 ) and where we put the null check to protect the while loop.

Otherwise, code structure looks good and in line with @jamesramsden-bh original issue/pseudo code and works well in Rhino so great job 😄

Geometry_Engine/Compute/ShortestPath.cs Outdated Show resolved Hide resolved
Geometry_Engine/Compute/ShortestPath.cs Outdated Show resolved Hide resolved
Geometry_Engine/Compute/ShortestPath.cs Outdated Show resolved Hide resolved
Geometry_Engine/Compute/ShortestPath.cs Outdated Show resolved Hide resolved
Geometry_Engine/Compute/ShortestPath.cs Outdated Show resolved Hide resolved
Geometry_Engine/Compute/ShortestPath.cs Outdated Show resolved Hide resolved
FraserGreenroyd
FraserGreenroyd previously approved these changes Sep 1, 2023
Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

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

All looks good now, thanks @albinber - great work 😄

@albinber
Copy link
Contributor Author

albinber commented Sep 1, 2023

@BHoMBot check compliance
@BHoMBot check required

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

@albinber to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance
  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

The check code-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

The check documentation-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

Copy link
Member

@pawelbaran pawelbaran left a comment

Choose a reason for hiding this comment

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

Hi @albinber, glad to see more faces contributing! 🚀 🚀 🚀

Starting from apologies: I do not want to spoil the party but... are we sure we are OK with modifying (i.e. emptying) the input collection? That should not happen from what I reckon - can be fixed easily by calling the following in line 42:

List<Point> ringPoints = points.ToList();

Would also be good to add checks against points being null or empty as well. But besides that, good stuff, can't wait for more! 👍

@albinber
Copy link
Contributor Author

albinber commented Sep 1, 2023

@BHoMBot check compliance
@BHoMBot check required

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

@albinber to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance
  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

There are 33 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

The check code-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

The check documentation-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@FraserGreenroyd FraserGreenroyd changed the title Geometry_Engine: Add shortestpath algoritm Geometry_Engine: Add shortest path algorithm Sep 1, 2023
Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

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

Changes make sense in line with comments, good to go.

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check ready-to-merge

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

@FraserGreenroyd to confirm, the following actions are now queued:

  • check ready-to-merge

@FraserGreenroyd
Copy link
Contributor

@BHoMBot this is a DevOps instruction. I am requesting neutral checks on: unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2023

@FraserGreenroyd I have provided neutral checks to the checks requested. These checks will need to be run properly to obtain full results.

@FraserGreenroyd FraserGreenroyd merged commit 2ea6737 into develop Sep 1, 2023
13 checks passed
@FraserGreenroyd FraserGreenroyd deleted the geometry_engine-#2826-shortestpath branch September 1, 2023 14:03
@bhombot-ci bhombot-ci bot mentioned this pull request Sep 11, 2023
@bhombot-ci bhombot-ci bot mentioned this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New capability or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Geometry_Engine: Sort list of points to minimise distance between all points
4 participants