-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TetGen files import unsuccesful #169
Comments
@felipebm1996 sorry to hear about this issue. Can you produce copy and paste the runTetGen text produced in the command window here? Are there any error messages there? |
@Kevin-Mattheus-Moerman thanks for your reply. Here is text of the command window. The first TETGEN is done without smoothing, as you see there is self-interections. Then, the second on shows the error of import unsuccesful. I also attach a .zip with the files and codes that I'm using. Thanks again. ` %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --- Running TetGen to mesh input boundary--- 09-Jun-2023 11:42:53 !! Found 44 pairs of faces are intersecting. Self-intersection seconds: 0.228 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% No faces are intersecting. Self-intersection seconds: 0.213 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
The input STL you have contains intersecting triangles which is an invalid mesh for tetgen. The error messages from tetgen above are useful e.g. if it says:
Then you can debug/diagnose the issue in MATLAB e.g. by visualizing your mesh along with those bad triangles: gpatch([6011, 5845, 6354],V,'r','r',1,3) GIBBON's In the below zip I went through the steps and do not get an error. Can you test it? Note I also added a quick attempt (not really needed, so you can delete/ignore it, but might be nice to check out) to label the faces ("feature detection"), and to reorient the model (e.g. the grouping with the current settings on my machine picked out surface 4 as the inner cylinder, principal component directions for this inner hole surface help rotate it). Let me know if you need more help. |
Thanks for the code, it also doesn't show errors. Here some clarifications: Before I used tetgen, the 'import_segment.m' function uses ggremesh on the input STL to redefine the number of vertices (on this step I believe that fixes the issues that you mentioned), then these faces and vertices are used by patchThick to create a inner shell. Finally, the output faces Fp2 (or F2_2 as I named in the testing_code.m) plus the corresponding vertices are the input for the tetgen, here is the error. The idea is create a inner shell first and then use tetgen with the inner faces and vertices. Let me know if you have more questions about it. |
Hi all,
I'm using the gibbon toolbox on Matlab R2021b, Windows 11. A bit of context, I run multiple demos to validate that the Gibbon's functions work (they worked perfectly) and I also adapted an example to my specific problem using the runTetGen function and also worked. Then, I created a new script, in the same folder of the previous .m files, and appears the next warning:
Warning: \Documents\GIBBON-master\data\temp\skin.1.node import unsuccesful
Because of this, the meshOutput is empty. This error is bizarre and I tried a ton of things but now I'm out of ideas.
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: