visbrain.utils.convert_meshdata¶
-
visbrain.utils.
convert_meshdata
(vertices=None, faces=None, normals=None, meshdata=None, invert_normals=False, transform=None)[source][source]¶ Convert mesh data to be compatible with visbrain.
- Parameters
- verticesarray_like | None
Vertices of the template of shape (N, 3) or (N, 3, 3) if indexed by faces.
- facesarray_like | None
Faces of the template of shape (M, 3)
- normalsarray_like | None
The normals to each vertex, with the same shape as vertices.
- meshdataVisPy.MeshData | None
VisPy MeshData object.
- invert_normalsbool | False
If the brain appear to be black, use this parameter to invert normals.
- transformvisPy.transform | None
VisPy transformation to apply to vertices ans normals.
- Returns
- verticesarray_like
Vertices of shape (N, 3)
- facesarray_like
Faces of the template of shape (M, 3)
- normalsarray_like
The normals of shape (M, 3, 3).