Skip to main content

geometry

geometry(which, lr, space='onavg-ico32', vertices_only=False, **kwargs)

Surface geometry.

Parameters

Name Type Description Default
which str Which geometry to get. One of the following: ‘sphere’, ‘sphere.reg’, ‘white’, ‘pial’, ‘inflated’, ‘midthickness’, ‘faces’. required
lr str Hemisphere, either ‘l’, ‘r’, or ‘lr’. required
space str Surface space. 'onavg-ico32'
vertices_only bool Whether to return only the coordinates of the vertices. False

Returns

Name Type Description
coords ndarray Coordinates of the vertices. Shape (n_vertices, 3). When which == 'faces', coords will not be returned.
faces ndarray Faces of the triangle surface mesh. Shape (n_faces, 3). Only returned when vertices_only == False.