External radiotherapy is extensively used to treat cervix carcinoma. It is based on the acquisition of a planning CT scan on which the treatment is optimized before being delivered over 25 fractions. However, large pertreatment anatomical variations, hamper the dose delivery accuracy, with a risk of tumor under-dose and healthy organs over-dose resulting to recurrence and toxicity. We propose to generate a patient-specific treatment library based on a population analysis. First, the cervix meshes of the population were registered towards a template anatomy using a deformable mesh registration (DMR). The DMR follows an iterative point matching approach based on the local shape context (histogram of cylindrical neighbor coordinates and normalized geodesic distance to the cervix base), a topology constraint filter, a thin-plate-spline interpolation and a Gaussian regularization. Second, a standard principal component analysis (PCA) model was generated to estimate the dominant deformation modes of the population. Posterior PCA was computed to generate different potential anatomies of the target. For a new patient, her cervix was registered towards the template and her pre-treatment library was modeled. This method was applied on the data of 19 patients (282 images), using a leave-one-patient-out. The DMR was evaluated using point-to-point distance (mean: 1.3 mm), Hausdorff distance (5.7 mm), dice coeffi- cient (0.96) and mean triangle area difference (0.49 mm2 ). The performances of two modeled libraries (2 and 6 modeled anatomies) were compared to a classic pre-treatment library based on 3 planning CTs, showing better results according to both target and healthy organs coverage.