As an input I have an SVG file where curves are defined under PATH element with:
- Two line commands: Move To (M) and Line (L)
- Curve command : Cubic Bezier curve (C)
I want to translate this into CAD system that can draw ARC and LINE elements.
Cubic Bezier curve is defined in following way:
C x1 y1, x2 y2, x y
Where:
x1 y1 is the first control point
x2 y2 is the second control point
x y is the end point
Start point is known.
The question is what would be the algorithm to translate cubic Bezier curve into an ARC? ARC can be drawn with specified centre/end/angle or start/end/through points.