savesmf(v,f,fname) save a surface mesh to smf format author: Qianqian Fang, <q.fang at neu.edu> date: 2007/11/21 input: v: input, surface node list, dimension (nn,3) f: input, surface face element list, dimension (be,3) fname: output file name -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
0001 function savesmf(v,f,fname) 0002 % 0003 % savesmf(v,f,fname) 0004 % 0005 % save a surface mesh to smf format 0006 % 0007 % author: Qianqian Fang, <q.fang at neu.edu> 0008 % date: 2007/11/21 0009 % 0010 % input: 0011 % v: input, surface node list, dimension (nn,3) 0012 % f: input, surface face element list, dimension (be,3) 0013 % fname: output file name 0014 % 0015 % -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net) 0016 % 0017 0018 fid=fopen(fname,'wt'); 0019 fprintf(fid,'v %.16f %.16f %.16f\n',v'); 0020 fprintf(fid,'f %d %d %d\n',f'); 0021 fclose(fid);