DXFPolyline p = new DXFPolyline();
p.setDXFDocument(spline.getDXFDocument());
if ((spline.getDegree() > 0) && (spline.getKnots().length > 0)) {
// 2014-07-13 changed 30 to 10 to reduce the amount of memory used
Iterator<Point> pi = new NURBSFixedNTELSPointIterator(toNurbs(spline), ntels);
while (pi.hasNext()) {
p.addVertex(new DXFVertex(pi.next()));
}
} else {
// the curve is the control point polygon
Iterator<SplinePoint> i = spline.getSplinePointIterator();