In order to solve the problem of substantial computational resources of lattice structure during optimization, a local relative density mapping (LRDM) method is proposed. The proposed method uses solid isotropic microstructures with penalization to optimize a model at the macroscopic scale. The local relative density information is obtained from the topology optimization result. The contour lines of an optimized model are extracted using a density contour approach, and the triangular mesh is generated using a mesh generator. A local mapping relationship between the elements’ relative density and the struts’ relative cross-sectional area is established to automatically determine the diameter of each individual strut in the lattice structures. The proposed LRDM method can be applied to local finite element meshes and local density elements, but it is also suitable for global ones. In addition, some cases are considered in order to test the effectiveness of the LRDM method. The results show that the solution time of the LRDM is lower than the RDM method by approximately 50%. The proposed method provides instructions for the design of more complex lattice structures.