Chamferless assembly of rectangular parts in two and three dimensions