spm_mesh_utils.m 918 B

12345678910111213141516171819202122
  1. function varargout = spm_mesh_utils(action,varargin)
  2. % A gateway function for surface mesh-related compiled algorithms
  3. %
  4. % FORMAT [N, D] = spm_mesh_utils('neighbours',A)
  5. % Return an array of first-order neighbours given an adjacency matrix
  6. %
  7. % FORMAT Fi = spm_mesh_utils('neighbouringfaces',F,i)
  8. % Return the indices of the neighbouring triangles of a given triangle
  9. %
  10. % FORMAT D = spm_mesh_utils('dijkstra',N,D,i,dmax)
  11. % Compute geodesic distance on a triangular mesh using Dijkstra algorith
  12. %
  13. % FORMAT V = spm_mesh_utils('volume',M)
  14. % Compute the volume of a closed surface mesh
  15. %__________________________________________________________________________
  16. % Copyright (C) 2010-2017 Wellcome Trust Centre for Neuroimaging
  17. % Guillaume Flandin
  18. % $Id: spm_mesh_utils.m 7240 2017-12-19 12:06:59Z guillaume $
  19. %-This is merely the help file for the compiled routine
  20. error('spm_mesh_utils.c not compiled - see Makefile')