[node,elem,face]=v2m(img,isovalues,opt,maxvol,method) volumetric mesh generation from binary or gray-scale volumetric images shortcut for vol2mesh author: Qianqian Fang (fangq <at> nmr.mgh.harvard.edu) inputs and outputs are similar to those defined in vol2mesh -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
0001 function [node,elem,face]=v2m(img,isovalues,opt,maxvol,method) 0002 % 0003 % [node,elem,face]=v2m(img,isovalues,opt,maxvol,method) 0004 % 0005 % volumetric mesh generation from binary or gray-scale volumetric images 0006 % shortcut for vol2mesh 0007 % 0008 % author: Qianqian Fang (fangq <at> nmr.mgh.harvard.edu) 0009 % 0010 % inputs and outputs are similar to those defined in vol2mesh 0011 % 0012 % -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net) 0013 % 0014 if(nargin==4) 0015 method='cgalsurf'; 0016 end 0017 0018 [node,elem,face]=vol2mesh(img,1:size(img,1),1:size(img,2),1:size(img,3),opt,maxvol,1,method,isovalues);