cd /path/to/iso2mesh/sample/
load rat_head.mat % load
volumetric data
[no,fc]=v2s(volimage,0.5, 2);
%
create
surface of the volume
plotmesh(no,fc)
[nb,fb]=meshabox([0 0 2], [48 50 50], 5);
% create a bounding box to slice the object
[nocut,fccut]=surfboolean(no,fc,'and',nb,fb); % use
boolean to cut the boundary flat
[node,elem]=s2m(nocut,fccut,1,100); % create tet
mesh from the modified mesh
figure;
plotmesh(nocut,fccut)
--
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 https://groups.google.com/group/iso2mesh-users.
For more options, visit https://groups.google.com/d/optout.
Hi all
On this topic and a related question, when I try to use boolean to cut the boundiries, I encounter the error below.
Has anybody seen this before? Any help is much appreciated.
Best
Moh
>>[nocut,fccut]=surfboolean(no,fc,'and',nb,fb);
Error using surfboolean (line 188)
surface boolean command failed:
cd "/tmp/iso2mesh-user/" && "/home/user/iso2mesh/bin/cork.mexa64" -isct "/tmp/iso2mesh-user/pre_surfbool1.off"
"/tmp/iso2mesh-user/pre_surfbool2.off" "/tmp/iso2mesh-user/post_surfbool.off" -1648335518
ERROR: error at src/mesh/mesh.isct.tpp, line #1063: Ran out of tries to perturb the mesh
On Friday, 11 May 2018 21:01:47 UTC+10, iso2meshNewbie wrote:Dear Qianqian,
The previous file that you have not seen is attached here.
I appreciate your help, however I feel that I need to first learn the basics of iso2mesh. For example, how to load binarized tiff stack? Example script would be helpful.