FEM Mixed head model

Thanks tmedani for your response.

all the dipoles will be projected to the nearest pint on the gray cortical layer, thus all you deep source will be moved from the deep structure during the computation

I noticed this while reviewing the case for the surface model. I was attempting to create a surface file for the combined deep structures and cortical layer, and then force the vertices within the envelope of this surface. Do you think that would be a workable approach?

I will also give your idea a try. I noticed there is a function tess_refine.m in the anatomy folder. Is this what you had in mind to refine the mesh? It looks simple enough to use, though I'm not sure how I would specify to only refine the mesh locally around the surrounding areas. I suppose you mean to refine only WM and CSF layers, but not necessarily skull or scalp?

Thanks again,
Kyle