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
Handle corner cases for curve baking #69726
Conversation
021c786
to
32803cf
Compare
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.
Corner cases should be handled (checked) in the Curve class, not in the Math class.
To be more precise, they are the corner cases of how to correctly calculate tangent for one bezier segment. And like |
32803cf
to
84055c3
Compare
I don't think so. There are several ways to think about the treatment of end/sharp points, and the error caused by the Curve class calculation using |
I also think it is not a good thing to insist on the word bezier in naming for function that is not actually a bezier curve. If you want to make it generic for some places, the biggest compromise is to expose a static method called |
When control point and point have equal position, the derivative is 0 vector, which cause error message in Basis::look_at(). This commit handles this case.
Thanks for the explanation. I think you are right. I moved these methods to |
84055c3
to
adeef12
Compare
Thanks! |
When control point and in/out point have equal position, the derivative of bezier curve is 0 vector, which cause error message in Basis::look_at().
Also cause #69789
This commit handles this corner case.
Fix #69789