Email zadetek: Flexible alignment in 3D and its applications