Dear Qianqian,
Thank you so much for your suggestion and help. It helped me a lot. Actually, I was trying to simulate porous media domain by creating rectangles from images because I am not able to mesh my real porous images taken from micro CT. So, I have used very simple images to understand the meshing procedure.
It may be easier maybe to request your help and suggestions on the procedure for meshing my micro CT images, I guess because I do not have any idea why I can’t mesh it. I have attached a stack which contains 5 images. I have used only 5 images just for simplicity. I read this stack file into MATLAB and used the commands in the firsttry.m file.However, I got self-intersecting elements error. I think I need to smooth my surfaces somehow; but I have no idea. To solve this intersecting issue, I followed the steps that you suggested in FAQ file and some other posts in the group but no hope; I could not solve the error. So, I have changed my script file (secondttry.m) and it start running and then fails on Windows but it works on Mac OSX. On Windows, it gives out of memory error so I guess, I need 64bit version of iso2mesh binaries for Windows OS. Also, this script file takes too long time so I should simplify my procedure somehow.
So I need your help on 2 points. One of them is, may you compile 64-bit version of cgalmesh any other binaries that I need for me? And secondly, can you help me simplifying my mesher file? I think it should work and I should get a result soon or later because it works for simpler geometries. However, it fails.
I don’t need extra fine mesh, coarser mesh is okay for me as I found a way to create my geometry using iso2mesh mesh file in the commercial solver that we have (Comsol) so I just need a mesh to create a geometry.
I am very thankful for your help.