Hello everyone,
I am a very beginner user of iso2mesh. Actually, I am working on a porous media problem but I am having many problems while meshing the domain so I have started with very simple geometry to get familiar with meshing procedure. This is how I do this:
1-) I create my stack tiff file using imageJ and following that I read this file using similar way to demo_cgalmesher, by considering only "[node,elem,face]=v2m(brain,[],2,100,'cgalmesh')" line.
2-) I use savemphtxt m file to save the mesh as comsol input file and when I import this file into Comsol, I get error: Detail: Two elements connect to the same side of the shared element face.
3-) I checked iso2mesh-users forum so I understand that I need to use meshcheckrepair m file to fix shared element faces. When I type the command meshcheckrepair(node,elem,'meshfix'), I got fgets error like the follows:
/Documents/MATLAB/iso2mesh/bin/meshfix.mexmaci64" "/private/tmp/iso2mesh/pre_sclean.off" -q -a 0.01 : Killed
Error using fgets
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in fgetl (line 33)
[tline,lt] = fgets(fid);
Error in readoff (line 23)
line=fgetl(fid);
Error in meshcheckrepair (line 77)
[node,elem]=readoff(mwpath('pre_sclean_fixed.off'));
I have checked that I am able to use other commands that needs bin folder. I also am able to use other meshcheckrepair options, such as "dup".
Where is my mistake? Am I doing something wrong or skipping any step? Can you help me please?