Extracting arrows from shapes