hi Chengxin,
did you print the elem output? your volumetric mesh is in node/elem. you don't need face output.
if your confusion came from the fact that plotmesh only shows the exterior surface when you run plotmesh(node, elem), that does not mean the elem output is just surface.
you can try making a cross-sectional cut and see the interior elements
plotmesh(node, elem, ['x<' num2str(mean(node(:,1))]);
Qianqian
Dear Dr. Fang,I am trying to use vol2mesh to create the volumetric mesh of a 3D aorta binary mask matrix, but it only return the surface mesh.the opt was set as 5the maxvol was set as 8and the isovalue was set as 1(1for inside the mask,0 for outside the mask)[node,elem,face] = vol2mesh(data.Mask,1:size(data.Mask,1),1:size(data.Mask,2),1:size(data.Mask,3),5,2*2*2,1,'cgalmesh',1);--Thanks,Chengxin
You received this message because you are subscribed to the Google Groups "iso2mesh-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iso2mesh-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iso2mesh-users/51d4d37e-3432-4b83-ba84-387afb432369n%40googlegroups.com.