% assuming your multi-label volume is img
% extracting the outer surface mesh
[no_outer, fc_outer]=v2s(img>0, ....);
% create a tall cylinder centered at [0 0 0]
[no_cyl, fc_cyl]=meshacylinder(c0,c1,1, ....);
% define the centers of each embedded cylinder
cyl_center=[ox1,oy1,oz1; ox2,oy2,oz2; ....];% copy the cylinder to each center location, and merge with the outer surface
[no_all, fc_all]=mergemesh(no_outer, fc_outer,...
no_cyl+repmat(,size(no_cyl,1),1), fc_cyl , ...cyl_center(1,:)
no_cyl+repmat(,size(no_cyl,1),1), fc_cyl , ...cyl_center(2,:)
no_cyl+repmat(,size(no_cyl,1),1), fc_cyl , ...cyl_center(3,:)
....
);
% create tetrahedral meshusing the merged surface
[node,elem]=s2m(no_all,fc_all, 1, 50, cylinder_centers);
% plot the result
plotmesh(node,elem);
Thank you in advance,
Konstantinos.
--
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 post to this group, send email to iso2mes...@googlegroups.com.
Visit this group at http://groups.google.com/group/iso2mesh-users.
For more options, visit https://groups.google.com/d/optout.
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.