7172737475767778798081
if (sp.isControlPoint()) { list.add((Point) sp); } } NURBS n = new NURBS((Point[]) list.toArray(new Point[list.size()]), spline.getKnots(), spline.getWeights(), spline.getDegree()); n.setClosed(spline.isClosed()); return n; }