Reconstruction of a 3D shape from its apparent contour