You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: findTetra.m
    path of file: ./repos/mtex/geometry/@DelaunaySO3
    
    the code of the file until where you have to start completion:  function [tetra,bario,iter] = findTetra(DSO3,ori)
 % find tetrahegon
 %
 % Input
 %  DSO3 - @DelaunaySO3
 %  ori  - @orientation
 %
 % Output
 %  tetra - indice of the tetrahegon
 %  bario - bariocentric coordinates
 %
 
 ori = orientation(ori,DSO3.CS,DSO3.SS);
 
 % look up table
 if ~isempty(DSO3.lookup)
   [max_phi1,max_Phi,max_phi2] = fundamentalRegionEuler(DSO3.CS,DSO3.SS);
   %ori = ori.project2FundamentalRegion;
    
function [tetra,bario,iter] = findTetra(DSO3,ori)
 % find tetrahegon
 %
 % Input
 %  DSO3 - @DelaunaySO3
 %  ori  - @orientation
 %
 % Output
 %  tetra - indice of the tetrahegon
 %  bario - bariocentric coordinates
 %
 
 ori = orientation(ori,DSO3.CS,DSO3.SS);
 
 % look up table
 if ~isempty(DSO3.lookup)
   [max_phi1,max_Phi,max_phi2] = fundamentalRegionEuler(DSO3.CS,DSO3.SS);
   %ori = ori.project2FundamentalRegion;
   
   if max_Phi<pi
     [axes,~] = DSO3.CS.getMinAxes;
     ia = find(isnull(dot(axes,zvector)),1,'first');
     [~,Phi,~] = Euler(ori);
     ori(Phi > pi/2) = ori(Phi > pi/2) * orientation.byAxisAngle(axes(ia),pi,DSO3.CS,DSO3.CS);     
   end