# Geodesic Surface Remeshing¶


This tour explores geodesic remeshing of surfaces.

This method is introduced in

Geodesic Remeshing Using Front Propagation Gabriel Peyr and Laurent Cohen, International Journal on Computer Vision, Vol. 69(1), p.145-156, Aug. 2006.

In [2]:
addpath('toolbox_signal')


## Farthest Point Sampling¶

An uniform sampling of points on a surface is obtained using a greedy farthest point sampling.

In [3]:
clear options;
name = 'bunny';
n = size(vertex,2);
options.name = name;


Display it.

In [4]:
clf;
plot_mesh(vertex,faces, options);


Pick a first point.

In [5]:
landmarks = [100];


Compute the geodesic distance to this point.

In [6]:
[D,Z,Q] = perform_fast_marching_mesh(vertex, faces, landmarks);


Display the geodesic distance to the point.

In [7]:
clf; hold on;
options.face_vertex_color = mod( 20*D/max(D),1 );
plot_mesh(vertex,faces, options);
colormap jet(256);
h = plot3(vertex(1,landmarks), vertex(2,landmarks), vertex(3,landmarks), 'r.');
set(h, 'MarkerSize', 20);