# Problem with BEm construction

**URL:** <https://mne.discourse.group/t/problem-with-bem-construction/2199>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [May 25, 2020, 10:36am UTC](https://mne.discourse.group/t/problem-with-bem-construction/2199 "2020-05-25T10:36:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 25, 2020, 10:36am UTC](https://mne.discourse.group/t/problem-with-bem-construction/2199/1 "2020-05-25T10:36:27Z")

</div>

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](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200525/36284c9c/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 26, 2020, 7:05am UTC](https://mne.discourse.group/t/problem-with-bem-construction/2199/2 "2020-05-26T07:05:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 26, 2020, 8:35am UTC](https://mne.discourse.group/t/problem-with-bem-construction/2199/3 "2020-05-26T08:35:37Z")

</div>

External Email - Use Caution

It works thanks !
