-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Simplify and generalize BezierSegment. #13355
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
Conversation
@@ -25,7 +25,7 @@ def __init__(self, canvas, cankill): | |||
# for simplicity I'm going to reuse a bitmap from wx, you'll | |||
# probably want to add your own. | |||
tool = self.AddTool(wx.ID_ANY, 'Click me', _load_bitmap('back.png'), | |||
'Activate custom contol') | |||
'Activate custom control') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noticed because the docstring of BezierSegment had the same typo :)
cbbf05d
to
d6aae2f
Compare
edit: let's also support arbitrary N, while we're at it... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks reasonable. However, it appears that we have no tests for bezier curves; and I'm not convinced enough that I dare to approve. 😞
But the patch is indirectly tested by other tests (as shown by coverage). |
As it turns out, it is simpler to write the d-dimensional version than the 2-dimensional special case.
As it turns out, it is simpler to write the d-dimensional version than
the 2-dimensional special case.
I initially tried to rebase the original PR (#9686, from @ijackson) but the codebase has diverged to much for it to make sense.
PR Summary
PR Checklist