+ Real len = (to-from).length ();
+
+ int n = (int) rint ((len - period * fraction) / period);
+ if (n > 0)
+ {
+ /*
+ TODO: figure out something intelligent for really short
+ sections.
+ */
+ period = ((to-from).length () - period * fraction) / n;
+ }