You are wanting a curve fitting function, rather than a bezier curve.
Unfortunately this is not part of the SVG specification, so will probably not be added to
-draw, without breaking its support of SVG standards.
However a new drawing '
primative' could be added to the MVG command set, without breaking the
SVG Path Specification.
But unless you like to try and add this yourself and submit a patch (should be reasonably easy C coding for a new MVG primitive), it will probably not get done. IM is only as good as the people who are willing (and have time) to work on it. Yes I am one of those people who add new things to IM (see
-layers and
-distort), but have a todo list a mile long!
I myself would like to see this sort of function, as it is a lot easier to generate than a bezier curve, though there are a number of methods I have seen. One common one are very similar to cubic bezier, but is based on bi-cubic interpolation of spatial coordinates for line drawing. This is also a type of 'spline' but without control points.
ASIDE: drawing the line will be relativally easy, but what about 'filling' the enclosed area????? That is where you may have difficulty.
One idea I have also seen is to get IM to internally generate, (or have a external script create them) the appropriate control points for a reasonable cubic bezier fit of just the 'pass through' points (one may be on the net already!).
The external script idea has the added advantage of allowing you to do this, but then let you 'tweek' those controls to sharpen or round off the curve for the specific problem. It would be extremely welcome as an addition to the IM example page on the
Cubic Bezier primitive, where I have tried to present methods for the display, and adjusting of such a curve, without needing special tools. Also it would for SVG users too, not just IM!
Hey Fred, this sounds right up your alley, with your research knowledge!