Adding rotation to chamfer
added rotation to chamfer matching