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

Waveguide rounded corners upgrades #5

Merged
merged 9 commits into from
Aug 22, 2022
Merged

Conversation

thomaslima
Copy link
Member

Given some user feedback, I caught some algorithm errors in the code that rounds waveguide corners. They only occur in edge cases.

In addition, I have improved the error messaging so they appear less cryptic and show exactly what went wrong and where. For example, from "Not enough space for enough turns" to "Not enough space to complete arcs in rounded waveguide".

When there's an error in layout_waveguide_from_points, a warning with a traceback will be issued so that the user can locate the offending code more easily.

I have added a function waveguide_from_points with the same signature of layout_waveguide_from_points that returns the point list and width list to be called by layout_waveguide. This is useful to draw additional features around a rounded waveguide.

@thomaslima thomaslima changed the title WIP: Waveguide rounded corners upgrades Waveguide rounded corners upgrades Aug 22, 2022
@thomaslima thomaslima merged commit b529fb9 into development Aug 22, 2022
@thomaslima thomaslima deleted the rounding-refactor branch August 22, 2022 21:24
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.

1 participant