In order to realize the unification of the calculation steps and results of the general ring typesetting and the actual deviation calculation of the segment under the tunnel coordinates,the fitting of the segment axis based on the tunnel axis can be carried out accurately and efficiently,and the typesetting technology of the general segmental ring for shield tunnel is optimized.Firstly,the selection of the three-dimensional coordinate system of the tunnel and the representation method of the space attitude of the shield segment are clarified.The calculation method of the true three-dimensional coordinates of the end face center of the typesetting of the general segmental ring for shield tunnel and the positioning method of the starting ring is proposed.According to an example of a shield tunnel project,the research and design software is used for typesetting and fitting.The results show that:The true three-dimensional coordinates of the end face center of the end face of general segmental ring for shield tunnel obtained by this method have a good fitting effect on the tunnel design axis.The center coordinates of the end face of the segment typesetting obtained by fitting can be compared with the actual measurement results,and the construction deviation direction and specific value can be obtained,which can provide quantitative control guidance for subsequent layout and deviation correction.In addition,the research can also realize the trial calculation of segment wedge,thus optimizing the segment design parameters,and providing technical support for the design and construction of shield tunnel,which has great application value.