foreach_flat
Description:
Execute a provided function for the segments of a poly line approximating the path.
Parameters:
| this | a Path | 
| each_item | a function to call for each node in the path. | 
| user_data | user data to pass to a node. |