Hello @tmedani
Thank you very much for your reply.
I am trying to build a forward model for EEG source reconstruction. I followed the tutorial you suggested and tried to re-generate the meshes using iso2mesh . However, I keep getting the following error (see below):
** Warning: Point #707112 is coincident with #760897. Ignored!
[...]
** Warning: Point #791555 is coincident with #607810. Ignored!
** Warning: Point #739861 is coincident with #607810. Ignored!
** Delaunay seconds: 7.36346
** Creating surface mesh ...
** Found two overlapping facets.
** 1st: [227177, 227183, 155386] #1
** 2nd: [227177, 227183, 155386] #2
** A self-intersection was detected. Program stopped.
** Hint: use -d option to detect all self-intersections.
**
**
**
** Call stack:
** >surf2mesh.m at 117
** >process_fem_mesh.m>Compute at 434
** >process_fem_mesh.m>ComputeInteractive at 1531
** >process_fem_mesh.m at 31
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@process_fem_mesh,'ComputeInteractive',iSubject,,GetAllFilenames(bstNodes)) at 1275
**
I also saw in this thread : Error while using ISO2MESH - "A self-intersection was detected. Program stopped"
that this could be related to the resect neck option. I therefore tried without resect neck and also repaired the surfaces with meshcheckrepair (using both selfint and dup options) before and after merging the surfaces. Unfortunately, I still get the same error.
Could this be related to the mesh size ? Should I try to smooth or simplify the surfaces?
This only happens for 3 subjects out of 20 . For the other 17 subjects, the forward model computes successfully. Since my goal is to perform LCMV source reconstruction , I would prefer to keep the meshes as comparable as possible across all participants.
Do you have any suggestions for further checks that I could try on these problematic subjects?
Many thanks in advance for your help,
Best regards,
Candice