A Decomposition-based Approach to Modeling and Understanding Arbitrary Shapes