A Probabilistic Model for Component-Based Shape Synthesis