Stitch more than two fragments together.

This fixes an issue when stitching the 50m ocean example.