Path: remember Z coord of last point if not specified