Skip to content

Fix/traversal cluster exits - #732

Merged
barendgehrels merged 2 commits into
boostorg:developfrom
barendgehrels:fix/traversal_cluster_exits
Jul 1, 2020
Merged

Fix/traversal cluster exits#732
barendgehrels merged 2 commits into
boostorg:developfrom
barendgehrels:fix/traversal_cluster_exits

Conversation

@barendgehrels

Copy link
Copy Markdown
Collaborator
  • Fix some cases in buffer which went wrong without rescaling
  • Therefore extracted cluster_exits functionality (was already there, but in traversal. Now in external file)
  • Clean up some defines in robustness test and write test configuration

This makes it more efficient too (sort-by-side one time less).
This fixes some cases in buffer when rescaling is turned off.
@barendgehrels barendgehrels added this to the 1.74 milestone Jun 24, 2020
@barendgehrels barendgehrels self-assigned this Jun 24, 2020
// Function checks simple cases, such as a cluster with two turns,
// arriving at the first turn, first turn points to second turn,
// second turn points further.
inline bool select_turn_from_cluster_linked(signed_size_type& turn_index,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this functionality is now moved to cluster_exit, a struct is made, and there is one additional condition (the fix)


#if defined(BOOST_GEOMETRY_TEST_FAILURES)
BoostGeometryWriteExpectedFailures(1, 9);
BoostGeometryWriteExpectedFailures(1, 5);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It effectively fixes 2 cases

@vissarion vissarion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Look ok to me.

@barendgehrels
barendgehrels merged commit d01d6b1 into boostorg:develop Jul 1, 2020
@barendgehrels
barendgehrels deleted the fix/traversal_cluster_exits branch July 1, 2020 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants