A geometric theory in investigation on mode localization and frequency loci veering phenomena