This paper presented an automatic inside-out grid-based hexahedral element mesh generation algorithm for various types of solid models. For the thin features with small thickness of the geometric model, corresponding treatment methods were given for successfully implementing each meshing step, containing the techniques for adaptive refinement, boundary match, topological optimization and local refinement. In order to realize the reasonable identification of refinement regions and resolve the expansion problem of refinement information fields, a thin-feature criterion and a supplementary criterion were proposed aiming at thin features of the geometry. To implement accurate boundary match for thin features, ten basic types and five complementary types of facet configurations were established, and a priority-node identification method was proposed additionally. Three topological optimization modes were newly proposed to improve the topological connections of the boundary mesh in thin features. Local refinement techniques were also built to refine the thin features of solid models. Finally, several examples were provided to demonstrate the effectiveness and reliability of the proposed algorithms.