Hi All,
Still struggling with the irregular, jagged, boundaries the cgal option creates with vol2mesh. Looking at the cgal site (http://cgal-discuss.949826.n4.nabble.com/Smooth-3D-mesh-from-segmented-labeled-CT-scans-td4656333.html), it doesn't look hopeful that they will implement a solution anytime soon. As an interim, I am thinking of generating my two parts separately with vol2mesh (cgal option) and then merging the two resulting meshes using mergemesh combined with meshcheckrepair. Any thoughts or experiences I could learn from?
the resulting plot is attached.% use a sample volume from a demo script
cdiso2mesh/sample
demo_label_sizing
close all % all I need is the image volume from the above script
% create atet/surfacemesh first
maxvol='1=2:2=1:3=2:4=1';
[no,el,fc]=v2m(image,[],5,maxvol,'cgalmesh');
% cgalmesh returns two facts for each triangle, remove duplicates
newfc=unique(sort(fc(:,1:3),2),'rows');
% smoothing the surface group
newno=sms(no(:,1:3),newfc(:,1:3),20,0.5);
% create volumetric mesh from the smoothed surfaces
seeds=repmat([35 25 15 5]',1,3)/sqrt(3); % use to label the region
[node,elem,face]=surf2mesh(newno(:,1:3),newfc,[],[],1,2,seeds);
% making plots, compare the smoothness of all surfaces
subplot(221)
plotmesh(no(:,1:3),newfc,'x>y')
view([0 1 0])
subplot(222)
plotmesh(node(:,1:3),face(:,1:3),'x>y')
view([0 1 0])
subplot(223)
plotmesh(no(:,1:3),el,'x>y')
view([-1 1 0])
subplot(224)
plotmesh(node(:,1:3),elem,'x>y')
view([-1 1 0])
cheers--
nathan
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.