function SetObject(MPointsC1,MPointsC2,MPointsT2,MPointsP,MPointsDec,Mhandlers)
%Função para alterar os handles gráficos do objeto, atualizando as
%coordenadas dos seus pontos

view([30 15])

for ic1=1:size(MPointsC1,3)
    set(Mhandlers{ic1},'Xdata',MPointsC1(1,:,ic1),'Ydata',MPointsC1(2,:,ic1),'Zdata',MPointsC1(3,:,ic1));
    
end 
for ic2=1:size(MPointsC2,3)
    set(Mhandlers{ic2+size(MPointsC1,3)},'Xdata',MPointsC2(1,:,ic2),'Ydata',MPointsC2(2,:,ic2),'Zdata',MPointsC2(3,:,ic2));
end 
for it2=1:size(MPointsT2,3)
    set(Mhandlers{it2+size(MPointsC1,3)+size(MPointsC2,3)},'Xdata',MPointsT2(1,:,it2),'Ydata',MPointsT2(2,:,it2),'Zdata',MPointsT2(3,:,it2));
end   
    set(Mhandlers{size(Mhandlers,1)-1},'Xdata',MPointsP(1,:),'Ydata',MPointsP(2,:),'Zdata',MPointsP(3,:));
    set(Mhandlers{size(Mhandlers,1)},'Xdata',MPointsDec(1,:),'Ydata',MPointsDec(2,:),'Zdata',MPointsDec(3,:)); 
end