A two-level topological decomposition for non-manifold shape