Visualizing relationships between 2D and 3D figures