`R/read_fs_surface.R`

`faces.tris.to.quad.Rd`

This is experimental. Note that it can only work if the number of 'tris_faces' is even, as two consecutive tris-faces will be merged into one quad face. We could set the index to NA in that case, but I do not know how FreeSurfer handles this, so we do not guess.

`faces.tris.to.quad(tris_faces)`

tris_faces | *nx3* integer matrix, the indices of the vertices making up the *n* tris faces. |
---|

n/2x4 integer matrix, the indices of the vertices making up the *n* quad faces.

This function does not implement proper remeshing of tri-meshes to quad-meshes. Use a proper mesh library if you need that.