I have a patch object. When I display the patch it is smooth but now if I set its XData, YData or ZData properties of the patch to the same exact values that they just contained, the patch becomes blocky. Download the attachment and execute the following commands:
load 5thFemaleHeadha=patch('Vertices', nodes, 'Faces',elements, 'FaceColor', [0.8 0 0], ... 'EdgeColor',[0.8 0 0], 'FaceLighting', 'phong', 'EdgeLighting', 'phong'); % Surface is smooth as desired
light('Position',[-5 -5 5]); light('Position',[10 5 5]); view(3);
Now if I execute the following commands the patch becomes blocky:
x=get(ha,'XData'); y=get(ha,'YData');z=get(ha,'ZData'); set(ha, 'XData', x, 'YData', y,'ZData', z);
Best Answer