Tetgen failed

53 views
Skip to first unread message

Michael Mc Laughlin

unread,
Jun 11, 2023, 9:33:25 AM6/11/23
to iso2mesh-users

I get this error:

***************************************************************************
** Error: Line 117:  surf2mesh
** Tetgen command failed
**
** Call stack:
** >surf2mesh.m at 117
** >s2m.m at 35
** >brain2mesh.m at 453
** >process_fem_mesh.m>Compute at 693
** >process_fem_mesh.m>ComputeInteractive at 1283
** >process_fem_mesh.m at 31
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@process_fem_mesh,'ComputeInteractive',iSubject,iAnatomy) at 3091
**
***************************************************************************

But when I installed brainstorm I got this warning

Warning: Permission denied to create file "C:\Users\Michael\.brainstorm\plugins\iso2mesh\iso2mesh-1.9.6\bin\tetgen.mexmaci64".
> In unzip (line 103)
In bst_unzip (line 33)
In bst_plugin>Install (line 1423)
In bst_plugin>Install (line 1271)
In bst_plugin (line 110)
In process_fem_mesh>Compute (line 586)
In process_fem_mesh>ComputeInteractive (line 1283)
In process_fem_mesh (line 31)
In bst_call (line 28)
In tree_callbacks>@(h,ev)bst_call(@process_fem_mesh,'ComputeInteractive',iSubject,iAnatomy) (line 3091)

Qianqian Fang

unread,
Jun 11, 2023, 10:14:36 AM6/11/23
to iso2mes...@googlegroups.com, Michael Mc Laughlin, Francois Tadel, Mr [Affiliate]

hi Michael,

from the file path, it looks like you are running on Windows. in this case, I suspect that the reason tetgen failed was because you are trying to mesh a very large volume, and requires memory more than 4GB. the tetgen coming with iso2mesh-1.9.6 is a 32bit exe and does not support large memory. You will have to update your iso2mesh to the latest github version to call the tetgen_x86-64.exe.

also, to be sure this was the cause, you can set a break point at one of the below system() calls and print out the full command when calling tetgen, and try to run it inside a shell (cmd or powershell)

https://github.com/fangq/iso2mesh/blob/master/surf2mesh.m#L110-L114

CCing brainstorm developer Francois in case this is a known brainstorm issue.

Qianqian

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/iso2mesh-users/653240a6-145d-442c-94d9-86b5844ef012n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages