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

Missing spaces: Implemented traverse algorithm that is based on edges rather than nodes #995

Merged
merged 13 commits into from
Jul 27, 2023

Conversation

srudenkoamc
Copy link
Contributor

@srudenkoamc srudenkoamc commented Jul 24, 2023

BACKGROUND:

DESCRIPTION:

  • Added two tests to cover one of the fixed issues and basic functionality.
  • Implemented new traverse algorithm for the closed regions search that is based on the edges rather than nodes.
  • New traversing algorithm also works correctly with several leaves inside a single closed region.
  • Sometimes walls center lines intersections are not handled correctly. Added postprocessing for such cases.

TESTING:

FUTURE WORK:

  • Walls center lines intersections issues still exist. A proper fix instead of postprocessing (or along with it) is required.

This change is Reviewable

srudenkoamc and others added 12 commits July 24, 2023 09:40
Added a test to check if FindAllClosedRegions basic functionality works correctly.
Added a test - a room with two inner leaves. FindAllClosedRegions will find only a single clockwise region. Such regions are filtered out during the rooms search, so such room will be missed.
 - Switched to traversing through edges during closed regions search.
 - Fixed TwoLeavesClosedRegions test.
 - Fixed several other tests that extracted an additional clockwise cycle.
 - EShapeNetworkClosedRegions test is broken, but it will be fixed later.
 - Filtered out "closed regions" that were created from path by edges backtracking.
 - EShapeNetworkClosedRegions test is fixed by these changes.
Removed codirectional edges from adjacency matrix.
Sometimes several edges with the same start have the same direction. In such cases the shortest edge stays, and other edges are replaced with smaller edges between consecutive points.
For example:
 A ----- B ----- C ----- D
There are edges AB, AC, AD. They will be replaced with AB, BC and CD.
Copy link
Member

@andrewheumann andrewheumann left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

Copy link
Member

@andrewheumann andrewheumann left a comment

Choose a reason for hiding this comment

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

Looks great! thanks for taking on this work, sorry it took me a while to review!

Reviewable status: :shipit: complete! 1 of 1 approvals obtained

Copy link
Contributor

@katehryhorenko katehryhorenko left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! 2 of 1 approvals obtained

Copy link
Contributor

@katehryhorenko katehryhorenko left a comment

Choose a reason for hiding this comment

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

I tested this changes on Drywall function. Everything works great

Reviewable status: :shipit: complete! 2 of 1 approvals obtained

@katehryhorenko katehryhorenko merged commit 97cadd7 into hypar-io:master Jul 27, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants