polymorph
polymorph copied to clipboard
Path conversion for open paths
Only add Z at the end of the new shape if the input shape also has it.