Skip to content
Prototype implementation of a Bezier curve approximation algorithm with biarcs
C#
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Properties
Algorithm.cs
App.config
Arc.cs
BiArc.cs
BiArcTutorial.csproj
CubicBezier.cs
Form.Designer.cs
Form.cs
Form.resx
LICENSE.md
Line.cs
Program.cs
README.md

README.md

Bezier curve approximation algorithm with biarcs

Appveyor

Synopsis

Simple C# application to illustrate the algorithm of approximating a cubic bezier curve with biarcs. The algorithm will also be available in Haskell, incorporated into my JuicyGcode project.

Implementation

The algorithm will be explained in the blog post at http://dlacko.org/blog/2016/10/19/approximating-bezier-curves-by-biarcs/.

Usage

The entry point of the application is the “OnPaint” method in “Form.cs”. You can set the bezier curve to be approximated there (first line) and you can also change the approximation parameters at the “Algorithm.ApproxCubicBezier” call (second line).

The application draws the original bezier curve (black color), the approximation biarcs (red color), and the full circles the arcs lie on (green color).

Installation

Use the community edition of Visual Studio 2015 to run it.

You can’t perform that action at this time.