Posted by gmiecznik
on October 11, 2008 at 2:22 PM PDT
It appears to me that neither Java2D nor Java3D provides a method to interpolate or smooth a curve. This problem has already been brought up (http://forums.java.net/jive/thread.jspa?threadID=35085 ) but the suggested solution does not lead any obvious path.
The problem is very simple - given a set of (x,y) points, interpolate in between. For example,
this is done in MS Excel when you do a scatter plot with known x-y points.
Probably Bi-cubic splines are best suited here, but nowhere could I find any examples of how to do this interpolation. Suprisingly, there are tons of Bezzier curve or spline applets, but none of addresses this obvious problem.
If you know how to do it using the existing Java resources or 3rd partly software I would greatly appreciate it.