We propose results that relate the two contexts. The problems that we discuss arise from the mathematical description of elastic materials displaying heterogeneous incompatibilities of strains that may be associated with growth, swelling, shrinkage, plasticity, etc. Our results and methods display the interaction of nonlinear pdes, geometry, analysis and mechanics of materials in the prediction of patterns and shape formation.