Table of Contents

Method ConvertToPolyType

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ConvertToPolyType(DxfPoly3dType)

Converts the polyline to a type, as AutoCAD's ConvertToPolyType: straightened for SimplePoly, fitted with a quadratic or cubic B-spline of the header's SPLINESEGS segments to a span (8 where the file gives none) as SplineFit(DxfPoly3dType, int) fits it.

public void ConvertToPolyType(DxfPoly3dType newVal)

Parameters

newVal DxfPoly3dType

The type.

Exceptions

ArgumentOutOfRangeException

Thrown when the type is not one of DxfPoly3dType.

InvalidOperationException

Thrown when the polyline is erased, or has too few vertices to fit.