% display object with vertex/face data in file d.m
clear all;
close all;

d; % read data
fvc2.faces = faces;
fvc2.vertices = vertices;
fvc2.facevertexcdata = dinoz;

v = fvc2.vertices;

h = patch(fvc2,'AmbientStrength',1,'DiffuseStrength',0.5,...         %dino
    'SpecularStrength',0,'SpecularExponent',5,'SpecularColorReflectance',0,...
    'FaceLighting','phong','EdgeLighting','phong','EdgeColor','interp','FaceColor','interp');
set(h,'Cdata',dinoz);
material shiny;
xlabel('x');ylabel('y');zlabel('z');
l=light('position',[3 -3 3],'style','infinite');
view(70,20);
