Hello, I would first like to say a huge thanks for making such a great piece of software open source. I think Iso2Mesh has a place for a lot of the work we are doing in the group I am in. It was very easy to make a working mesh for FEA, but I was wondering if you could help me refine the mesh further.
The main problem I am having is to try and create a variable sizing field for the elements. Ideally, it would be fantastic to have smaller element size on the border of certain image labels.
I can set radbound and distbound globally in the function vol2surf, however changing these settings for each label (e.g. opt(1).radbound=1)doesn’t seem to work. I have also tried to rectify this by using meshrefine after the volumetric mesh is created with parameters such as opt.reratio=0.5 and opt.reratio=1.5 yielding identical results. I thought a temporary file was overriding the variables, but deleting files in the mwpath doesn’t seem to fix this problem.
Are there any functions I should explore to make boundaries cleaner between labels? Smoothsurf seemed to help. I would like to avoid triangles sticking out too much. Would the labelled image I am entering have to be higher resolution?
In the image above, it would be great if these elements were smoother and following the red line more closely, whilst having the elements more concentrated at the border.
These links show the current script and labelled input matrix. Code in comments are some ideas that I have tried to play around with.
https://drive.google.com/file/d/17hr0dhEXnwjrWJ-RH0BK04N5aoofB2Ho/view?usp=sharing, https://drive.google.com/file/d/1jeLH69YjJdo2mrnTc5C7UPCLEtlkDm9Z/view?usp=sharing
Any help would be greatly appreciated!
An important detail I forgot to mention is that there are sections where three labels touch. Is the pipeline you described within Iso2Mesh (v2s -> sms -> s2m) capable of doing that?