qm_out = trisurf(tri_out,point_out(:,1),point_out(:,2),point_out(:,3),'LineStyle','none');
hold on;
qm_in = trisurf(tri_in,point_in(:,1),point_in(:,2),point_in(:,3),'LineStyle','none');
colormap([0.5 0.5 0.5]);
alpha(qm_out,0.25);
alpha(qm_in,1);
light('position',[0 -10 1.5],'style','infinite') %'local' 'infinite'
lighting phong;
%% 旋转
writerObj = VideoWriter('peaks.avi');
writerObj.FrameRate = 10;
open(writerObj);
for az = 1:180
rotate(qm_out,[0 1 0],az);
rotate(qm_in,[0 1 0],az);
drawnow;
view([1 0 0]);
frame = getframe;
writeVideo(writerObj,frame);
end
close(writerObj);