/** * Update vertex, color, index and texture buffers (0) to contain an extrusion of shape along path. * * @param shape * an instance of Line that describes the 2D shape * @param path * a list of vectors that describe the path the shape should be extruded * @param up * up vector */ public void updateGeometry(final Line shape, final List<ReadOnlyVector3> path, final ReadOnlyVector3 up) { updateGeometry(shape, path, false, up); }
solveTridiag(sub.clone(), diag.clone(), sup.clone(), a[dim], np - 2); this.updateGeometry(shape, path, closed, up);
solveTridiag(sub.clone(), diag.clone(), sup.clone(), a[dim], np - 2); this.updateGeometry(shape, path, closed, up);
/** * Convenience constructor. Calls {@link #updateGeometry(Line, List, Vector3)}. * * @param shape * see {@link #updateGeometry(Line, List, Vector3)} * @param path * see {@link #updateGeometry(Line, List, Vector3)} * @param up * up vector */ public Extrusion(final Line shape, final List<ReadOnlyVector3> path, final ReadOnlyVector3 up) { updateGeometry(shape, path, up); }
/** * Update vertex, color, index and texture buffers (0) to contain an extrusion of shape along path. * * @param shape * an instance of Line that describes the 2D shape * @param path * a list of vectors that describe the path the shape should be extruded * @param up * up vector */ public void updateGeometry(final Line shape, final List<ReadOnlyVector3> path, final ReadOnlyVector3 up) { updateGeometry(shape, path, false, up); }
/** * Convenience constructor. Calls {@link #updateGeometry(Line, List, Vector3)}. * * @param shape * see {@link #updateGeometry(Line, List, Vector3)} * @param path * see {@link #updateGeometry(Line, List, Vector3)} * @param up * up vector */ public Extrusion(final Line shape, final List<ReadOnlyVector3> path, final ReadOnlyVector3 up) { updateGeometry(shape, path, up); }
/** * Performs cubic spline interpolation to find a path through the supporting points where the second derivative is * zero. Then calls {@link #updateGeometry(Line, List, Vector3)} with this path. * * @param shape * an instance of Line that describes the 2D shape * @param points * a list of supporting points for the spline interpolation * @param segments * number of resulting path segments per supporting point * @param up * up vector */ public void updateGeometry(final Line shape, final List<ReadOnlyVector3> points, final int segments, final ReadOnlyVector3 up) { updateGeometry(shape, points, segments, false, up); }
/** * Convenience constructor. Sets the name and calls {@link #updateGeometry(Line, List, Vector3)}. * * @param name * name * @param shape * see {@link #updateGeometry(Line, List, Vector3)} * @param path * see {@link #updateGeometry(Line, List, Vector3)} * @param up * up vector */ public Extrusion(final String name, final Line shape, final List<ReadOnlyVector3> path, final ReadOnlyVector3 up) { super(name); updateGeometry(shape, path, up); }
/** * Convenience constructor. Sets the name and calls {@link #updateGeometry(Line, List, Vector3)}. * * @param name * name * @param shape * see {@link #updateGeometry(Line, List, Vector3)} * @param path * see {@link #updateGeometry(Line, List, Vector3)} * @param up * up vector */ public Extrusion(final String name, final Line shape, final List<ReadOnlyVector3> path, final ReadOnlyVector3 up) { super(name); updateGeometry(shape, path, up); }
/** * Performs cubic spline interpolation to find a path through the supporting points where the second derivative is * zero. Then calls {@link #updateGeometry(Line, List, Vector3)} with this path. * * @param shape * an instance of Line that describes the 2D shape * @param points * a list of supporting points for the spline interpolation * @param segments * number of resulting path segments per supporting point * @param up * up vector */ public void updateGeometry(final Line shape, final List<ReadOnlyVector3> points, final int segments, final ReadOnlyVector3 up) { updateGeometry(shape, points, segments, false, up); }