Construct optimized pathlines