Shape reasoning and understanding