cortex.freesurfer.write_decimated

cortex.freesurfer.write_decimated(path, pts, polys)[source]

Decimate a surface mesh and write it out as a freesurfer surface plus a matching full-resolution patch file.

Parameters:
pathstr

Path prefix to write to; .smoothwm and .full.patch.3d suffixes are appended for the surface and patch files, respectively.

ptsndarray

Vertex coordinates of the mesh to decimate.

polysndarray

Triangle faces of the mesh to decimate.

Returns:
None

Writes path + ‘.smoothwm’ and path + ‘.full.patch.3d’ as a side effect; has no return value.