Write mesh to file in VTK ASCII format
write.fs.surface.vtk(filepath, vertex_coords, faces)
string. Full path to the output surface file, should end with '.vtk', but that is not enforced.
n x 3 matrix of doubles. Each row defined the x,y,z coords for a vertex.
n x 3 matrix of integers. Each row defined the 3 vertex indices that make up the face. WARNING: Vertex indices should be given in R-style, i.e., the index of the first vertex is 1. However, they will be written in FreeSurfer style, i.e., all indices will have 1 substracted, so that the index of the first vertex will be zero.
string the format that was written. One of "tris" or "quads". Currently only triangular meshes are supported, so always 'tris'.
Other mesh functions:
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.