now these functions are partially working, but the results are not completely verified. https://github.com/fangq/iso2mesh/blob/master/mesh2vol.m https://github.com/fangq/iso2mesh/blob/master/mesh2mask.m