The deformation algorithm is as follows. Our system first
divides both strokes into N segments and maps these onto
each other. Next, every control point of the grid that lies
within a specific distance relative to the source stroke, is assigned
to the nearest segment of this stroke.