In this paper an algorithm for creating an atlas-based finite element heart model for cardiac simulation is described. This model is used to simulate the propagation of electrical impulses of the heart. An important feature of this model is that it contains conductive paths and fibrous tissue, which makes it possible to make more realistic calculations of the propagation of electrical signals. The model created from anatomical segments of the heart surface is defined by a polygonal mesh. The algorithm presented in the article offers a means to create models of various accuracy.