/** * Creates a new <code>Line</code> from the control points making up this curve. It will have the name * <code>curve</code>, no normals, colour or texture, these can be added to the returned line if needed. * * @param steps * The number of iterations to perform between control points, the higher this number the smoother the * returned line will be, but it will also contain more vertices, must be greater than one. * @return A <code>Line</code> representing this curve, will not be <code>null</code>. */ public Line toRenderableLine(final int steps) { return toRenderableLine(1, getControlPointCount() - 2, steps); }
/** * Creates a new <code>Line</code> from the control points making up this curve. It will have the name * <code>curve</code>, no normals, colour or texture, these can be added to the returned line if needed. * * @param steps * The number of iterations to perform between control points, the higher this number the smoother the * returned line will be, but it will also contain more vertices, must be greater than one. * @return A <code>Line</code> representing this curve, will not be <code>null</code>. */ public Line toRenderableLine(final int steps) { return toRenderableLine(1, getControlPointCount() - 2, steps); }