Return an icosahedral surface of the desired grade.
(grade, patch_stats=False)
| 1127 | |
| 1128 | |
| 1129 | def _get_ico_surface(grade, patch_stats=False): |
| 1130 | """Return an icosahedral surface of the desired grade.""" |
| 1131 | # always use verbose=False since users don't need to know we're pulling |
| 1132 | # these from a file |
| 1133 | from .bem import read_bem_surfaces |
| 1134 | |
| 1135 | ico_file_name = op.join(op.dirname(__file__), "data", "icos.fif.gz") |
| 1136 | ico = read_bem_surfaces( |
| 1137 | ico_file_name, patch_stats, s_id=9000 + grade, verbose=False |
| 1138 | ) |
| 1139 | return ico |
| 1140 | |
| 1141 | |
| 1142 | def _tessellate_sphere_surf(level, rad=1.0): |