commit | b3d917d2f8b1c2daefae0644fcc6320fac5220a3 | [log] [tgz] |
---|---|---|
author | Anuj Verma <anuj@womp.xyz> | Fri Mar 04 16:53:27 2022 +0530 |
committer | Anuj Verma <anuj@womp.xyz> | Fri Mar 04 16:53:27 2022 +0530 |
tree | f9ffbe3bdbeadbfa7d0ef526c1e345995c5fdffe | |
parent | 5f9bc4b8594c7051ce700eb52fb593da924314cb [diff] |
[sdf] Impliment deviation based splitting for bezier curves. * src/sdf/ftsdf.c (split_sdf_cubic, split_sdf_shape): Added checks to figure out the deviation of bezier curves and stop splitting if the curve is flat enough. * src/sdf/ftsdfcommon.h (ONE_PIXEL): Added macro for unit pixel size in 26.6 fixed point representation.