Code covered by the BSD License  

Highlights from
Toolbox Graph

image thumbnail
from Toolbox Graph by Gabriel Peyre
A toolbox to perform computations on graph.

test_mesh_simplification.m
% test for mesh simplification
name = 'cow.ascii.ply';
[vertex,face] = read_mesh(name);

nface = size(face,1);
rates = 0.1;

clf;
[vertex1,face1] = perform_mesh_simplification(vertex,face, round(nface*rates) );
plot_mesh(vertex,face);
figure;
plot_mesh(vertex1,face1);

Contact us at files@mathworks.com