引用raphlinus · 2021-02
“for more details on this. I came very close to linking it.”
补充链接,供了解带拐角路径偏移的 polar stroking 细节
给路径描边提供严格理论,并提出无需递归的极坐标描边渲染法
路径填充有成熟的轮廓积分与缠绕数理论,但 PDF、SVG、PostScript 等标准在规定描边时只能借用“画笔沿轮廓描绘”的类比,缺乏严格的方式说明哪些采样点在描边路径内外。论文补上这一空白,提出有原则的描边理论,并据此开发极坐标描边方法,能稳健地渲染描边路径,并以直观的方式界定细分误差而无需递归。由于极坐标描边保证切线角的均匀小步长,它还能高效累积沿路径的弧长,用于贴图或虚线;论文重点在理论,作者已在现代可编程 GPU 上实现了这些方法。
HN 评论者多次把它作为路径描边(含拐角偏移、三次样条)和 GPU 矢量图形的参考资料,并用其末页插图说明描边几何的退化边界情形。
“for more details on this. I came very close to linking it.”
“His latest paper is about how to handle stroking of cubic splines:”
“There are two recent papers, Polar Stroking[2] and Converting stroked primitives to filled primitives[3].”
“See for instance the illustration on the last page of the Polar Stroking paper: Polar Stroking”