vix.ing · top · new · best · stats · spec

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

2024/07/24 by Van Aken, Jerry R.
#FOS: Computer and information sciences #Graphics (cs.GR) #I.3.4 #I.3.5

paper · doi:10.48550/arxiv.2407.17675

Abstract

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.

Related