Solving planar problems of crack theory for regions with salient points