Chamfer, corner shape calculation