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
typeDxfPoly3dTypeHow it is drawn: SimplePoly, the one made in code; fit it afterwards with ConvertToPolyType(DxfPoly3dType).
verticesIEnumerable<GeoPoint3>The vertices, in the world.
closedboolWhether 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).