Method ConvertToPolyType
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
ConvertToPolyType(DxfPoly2dType)
Converts the polyline to a type, as AutoCAD's ConvertToPolyType: straightened for
SimplePoly, fitted with a curve for FitCurvePoly as
CurveFit() fits it, and with a quadratic or cubic B-spline of the header's SPLINESEGS segments to a span
(8 where the file gives none) as SplineFit(DxfPoly2dType, int) fits it.
public void ConvertToPolyType(DxfPoly2dType newVal)
Parameters
newValDxfPoly2dTypeThe type.
Exceptions
- ArgumentOutOfRangeException
Thrown when the type is not one of DxfPoly2dType.
- InvalidOperationException
Thrown when the polyline is erased, or has too few vertices to fit.