A method and device for developing. a geometry of a superstructure and/or mesostructure for dental prostheses. According to one aspect of the invention a method of developing a geometry of a mesostructure for a dental prosthesis includes the following steps: receiving first 3D data defining a 3D installation space for a mesostructure, receiving second 3D data defining possible positions for attaching the mesostructure, receiving third 3D data defining possible positions or regions for attaching the dental prosthesis to the mesostructure, and developing an optimized geometry of the mesostructure by means of an optimization technique, wherein starting from the 3D installation space the possible positions for attaching the mesostructure and the possible positions or regions for attaching the dental prosthesis to the mesostructure, the geometry of the mesostructure is optimized by means of applying the physical laws.