first prototype of findOrientation.
renamed defDescriptor to createDescriptor.