Method Straighten
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Straighten()
Straightens a polyline fitted with a curve or a spline, as AutoCAD's Straighten: the vertices the fitting made
(flags 1 and 8) are taken out, those of the frame (16) are vertices of the polyline again, and flags 2 and 4 of group
70 and its group 75 go. The vertices of a polyline fitted with a curve lose the bulges of the arcs the fitting gave
them, so that its segments are straight again, as AutoCAD's decurving leaves them. A polyline that is not fitted is
left as it is.
public void Straighten()
Exceptions
- InvalidOperationException
Thrown when the polyline is erased.