Automatic Generation of Shape Models Using Nonrigid Registration with a Single Segmented Template Mesh