This patch adds initial support for bezier smoothing. This is a work in progress.
We basically just fit the drawn stroke to a curve in the post processing step. The fitting threshold can be adjusted using the smooth factor.
Differential D9565
GPencil: Add initial bezier smoothing option Authored by Falk David (filedescriptor) on Nov 14 2020, 3:56 PM.
Details
This patch adds initial support for bezier smoothing. This is a work in progress. We basically just fit the drawn stroke to a curve in the post processing step. The fitting threshold can be adjusted using the smooth factor.
Diff Detail
Event TimelineComment Actions @Matias Mendiola (mendio) Maybe it is better use an Enum with the smooth types instead to put a checkbox. Something like "Stroke and Bezier"
Comment Actions I would like to drop the "Bezier" in the UI altogether (really, it should be "Bézier"). I think for the user "Curve Smoothing" would be better. What do you think? Also I like the idea of choosing the option from a drop down (though I would not be sure on how to call the default smoothing? maybe just "Default Smoothing"?). This way we can also expose different options for the two methods (the curve smoothing needs some other options that are hardcoded now). Comment Actions I have tried it and it works very well, only two things to improve it IMO:
Comment Actions Planning changes, because this will most likely be implemented differently with the new stroke type (T85754). | ||||||||||||