Table of Contents

Constructor DxfPolyline3d

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

DxfPolyline3d()

Initializes a 3D polyline of no vertices, as AutoCAD's new Polyline3d(), on layer 0 in no file.

public DxfPolyline3d()

DxfPolyline3d(DxfPoly3dType, IEnumerable<GeoPoint3>, bool)

Initializes a 3D polyline of vertices, as AutoCAD's new Polyline3d(type, vertices, closed), on layer 0 in no file until it is added to one.

public DxfPolyline3d(DxfPoly3dType type, IEnumerable<GeoPoint3> vertices, bool closed)

Parameters

type DxfPoly3dType

How it is drawn: SimplePoly, the one made in code; fit it afterwards with ConvertToPolyType(DxfPoly3dType).

vertices IEnumerable<GeoPoint3>

The vertices, in the world.

closed bool

Whether a segment runs from the last vertex back to the first.

Exceptions

ArgumentNullException

Thrown when the vertices are null.

ArgumentException

Thrown when a coordinate is not a finite number.

NotSupportedException

Thrown for a type other than SimplePoly: make the polyline straight and fit it with ConvertToPolyType(DxfPoly3dType).