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: STUDY_00_wrist_ligament_reconstruction.m
    path of file: ./repos/GIBBON/studies/2021_Nataliya_Perevoshchikova_wrist_project
    
    the code of the file until where you have to start completion: %% STUDY_00_wrist_ligament_reconstruction
% Below is a demonstration for:
%
% * Reconstruction of scapholunate dorsal ligament in the wrist from
% attachments sites on scaphoid and lunate bones
% * Create solid mesh using tetgen
% * Importing and visualizing results
% * Filling up with fibers alone certain direction

%% Keywords
% * 
    
function [F_ligament,V_ligament]=fixOverlap(F_ligament,V_ligament,VL,distanceTooClose,stepSizeTooCloseFix)

indBoundary=unique(patchBoundary(F_ligament,V_ligament));

D=minDist(V_ligament,VL);
logicClose=D<distanceTooClose;
logicClose(indBoundary)=0;
if any(logicClose)
    while 1
        [~,~,Nv]=patchNormal(F_ligament,V_ligament);
        D=minDist(V_ligament,VL);
        logicClose=D<distanceTooClose;
        logicClose(indBoundary)=0;
        if nnz(logicClose)==0
            break
        end