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

fix: node positions #104

Merged
merged 7 commits into from
Jan 13, 2025
Merged

fix: node positions #104

merged 7 commits into from
Jan 13, 2025

Conversation

mmolari
Copy link
Collaborator

@mmolari mmolari commented Jan 8, 2025

This is a follow-up fix for #102
The previous PR fixed the edge-case for circular paths, but I realized that the debug assert would still fail for linear paths.
This was due to the way we do slices for linear vs circular paths.

given a path of length 100, the segment [0,100] is now indexed [0,0] for circular paths, since start == end, but is indexed as [0,100] for linear paths.

@mmolari
Copy link
Collaborator Author

mmolari commented Jan 8, 2025

Nb: I merged the export-test branch so that the export tests would not fail

@ivan-aksamentov ivan-aksamentov merged commit 7d28b1b into rust Jan 13, 2025
14 checks passed
@ivan-aksamentov ivan-aksamentov deleted the fix/circular-new-pos branch January 13, 2025 10:57
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.

2 participants