We present a novel vertex finding technique. The task is formulated as a discrete-continuous optimisation problem in a way similar to the deformable templates approach for the track finding. Unlike the track finding problem, "elastic hedgehogs" rather than elastic arms are used as deformable templates. They are initialised by a set of procedures which provide zero level approximation for vertex positions and track parameters at the vertex point. The algorithm was evaluated using the simulated events for the LHC CMS detector and demonstrated good performance.