-
-
Notifications
You must be signed in to change notification settings - Fork 577
Fix the Bevel node so it applies a consistent bevel size regardless of angle #2293
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
base: master
Are you sure you want to change the base?
Conversation
Thanks!
Based on this sentence, do I presume correctly that this means curved segments are left for future work? |
Yes, currently it only work for straight line only, I'll try to make it work for curve line also. |
!build |
|
This doesn't seem to have the expected behavior after passing a certain size, see video: capture_33_.mp4Could that be fixed, please? |
I attempted to resolve the algorithm. Is this the expected behavior? Screen.Recording.2025-02-20.212534.mp4 |
!build |
|
capture_34_.mp4 |
!build |
|
Screen.Recording.2025-03-15.144906.mp4Fixes the curve part |
!build |
|
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.
Thanks for this contribution; however it does not work if the layer has a transform applied to it.
if bezier.is_linear() { | ||
bezier.handles = bezier_rs::BezierHandles::Linear; | ||
} | ||
|
||
prev_bezier = prev_bezier.apply_transformation(|p| vector_data.transform.transform_point2(p)); |
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.
This doesn't work when the layer is transformed:
https://github.com/user-attachments/assets/7a8f031f-9b6a-475d-a890-7999c4161b92
aa7ff13
to
e11b57a
Compare
Fixes the layer transformed issue. Screen.Recording.2025-04-27.150918.mp4 |
Previously algorithm only spilt the line from both side with the give length.
Update the bevel algorithm for straight line only to give same bevel length.
Issue #2281