haplokuon / netDxf

.net dxf Reader-Writer
MIT License
986 stars 400 forks source link

Bezier #318

Open itcasth opened 2 years ago

itcasth commented 2 years ago

Do you support Bezier curve?

haplokuon commented 2 years ago

The DXF file format only has a definition for NURBS curves (Spline entity). While is very straight forward to save a Bezier curve as a Spline, to convert a Spline to a Bezier curve not so much. NURBS curve is a more generic mathematical representation of a curve than the Bezier. In other words, all Bezier curves can be represented as a Spline, but not all Splines can be represented as a Bezier.

haplokuon commented 2 years ago

Added the option to create a new Spline entity with a set of Bezier curves. At the moment, quadratic and cubic bezier curves are supported. In general, other than a third degree curve is rarely used.