renamed orient3d-function to orientation3d