Code covered by the BSD License  

Highlights from
Triangular Mesh Refinement

image thumbnail
from Triangular Mesh Refinement by Dirk-Jan Kroon
This function will refine a triangular mesh with 4-split spline interpolation

Ne=vertex_neighbours(FV)
function Ne=vertex_neighbours(FV)
% This function VERTEX_NEIGHBOURS will search in a face list for all 
% the neigbours of each vertex.
%
% Ne=vertex_neighbours(FV)
%

Ne=vertex_neighbours_double(FV.faces(:,1),FV.faces(:,2),FV.faces(:,3),FV.vertices(:,1),FV.vertices(:,2),FV.vertices(:,3));

Contact us at files@mathworks.com