function [MPointsC1O,MPointsC2O,MPointsT2O,MPointsPO,MPointsDecO] = SetPointOrigin(MPointsC1,MPointsC2,MPointsT2,MPointsP,MPointsDec)
%Função para atualizar as matrizes com os pontos aos quais são aplicadas as
%transformações geométricas com as coordenadas dos pontos atuais do
%poliedro

    MPointsC1O=zeros(size(MPointsC1,1),size(MPointsC1,2),size(MPointsC1,3));
    MPointsC2O=zeros(size(MPointsC2,1),size(MPointsC2,2),size(MPointsC2,3));
    MPointsT2O=zeros(size(MPointsT2,1),size(MPointsT2,2),size(MPointsT2,3));
    MPointsPO=zeros(size(MPointsP,1),size(MPointsP,2),size(MPointsP,3));
    MPointsDecO=zeros(size(MPointsDec,1),size(MPointsDec,2),size(MPointsDec,3));

for n=1:size(MPointsC1,3)
    MPointsC1O(:,:,n)=MPointsC1(:,:,n);
end
for n=1:size(MPointsC2,3)
    MPointsC2O(:,:,n)=MPointsC2(:,:,n);
end
for n=1:size(MPointsT2,3)
    MPointsT2O(:,:,n)=MPointsT2(:,:,n);
end
for n=1:size(MPointsP,3)
    MPointsPO(:,:,n)=MPointsP(:,:,n);
end
for n=1:size(MPointsDec,3)
    MPointsDecO(:,:,n)=MPointsDec(:,:,n);
end
end