Problem with BEm construction

External Email - Use Caution

Dear MNE team,

I many of my subjects the watershed algorithm gives poor results. So I
decided to create BEM based on the inner skull boundary from fiedltrip. I
saved the output from fieldtrip as surface format but when I pass
inner_skull.surf to the function make_bem function I get :
Creating the BEM geometry...
inner skull CM is 1.05 -0.61 59.80 mm
RuntimeError: Surface inner skull is not complete (sum of solid angles
yielded -1, should be 1.)
When I visualize the surface does not seems to have any problem

Do you know what could cause the error?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200525/36284c9c/attachment.html

External Email - Use Caution

hi Edoardo,

I suspect your triangles are oriented inwards or outwards with the opposite
convention as MNE. You can fix this if you have the triangles

triangles = triangles[:, ::-1]

or the fliplr function in matlab.

HTH
Alex

External Email - Use Caution

It works thanks !