arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.17675cs.GR
收藏

用分段三次贝塞尔曲线逼近绘制椭圆与椭圆弧

Drawing ellipses and elliptical arcs with piecewise cubic Bézier curve approximations

Jerry R. Van Aken

AI总结:

本文提出用分段三次贝塞尔曲线逼近任意朝向椭圆与椭圆弧的几何方法,并给出可嵌入图形库的简洁 C++ 函数实现。

摘要:

本教程讲解如何使用分段三次贝塞尔曲线绘制任意朝向的椭圆和椭圆弧。本文讨论的几何原理为图形函数带来了极为简洁的接口,这些函数可以绘制(近似)圆、椭圆以及圆弧和椭圆弧。文中包含这些函数的 C++ 源代码清单。由于它们被设计为与绘制贝塞尔曲线的图形库或平台配合使用,并由该库或平台负责曲线的实际渲染,因此其代码量可以相对较小。

英文摘要:

This tutorial explains how to use piecewise cubic Bézier curves to draw arbitrarily oriented ellipses and elliptical arcs. The geometric principles discussed here result in strikingly simple interfaces for graphics functions that can draw (approximate) circles, ellipses, and arcs of circles and ellipses. C++ source code listings are included for these functions. Their code size can be relatively small because they are designed to be used with a graphics library or platform that draws Bézier curves, and the library or platform is tasked with the actual rendering of the curves.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑