Flattening transformations of paths

Original (left), Flattened (right)