Making A Template And Processing The Edges Of The Diameter