Skip to content
Snippets Groups Projects
Commit e701c872 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Don't copy vertices/indices. If callers need writeable arrays, they can

change flag/create a copy themselves
parent 1da36b03
No related branches found
No related tags found
No related merge requests found
......@@ -211,8 +211,8 @@ def loadGiftiMesh(filename):
raise ValueError('{}: GIFTI surface files must contain '
'at least one pointset array'.format(filename))
vertices = [np.array(ps.data) for ps in pointsets]
indices = np.array(triangles[0].data)
vertices = [ps.data for ps in pointsets]
indices = triangles[0].data
if len(vdata) == 0: vdata = None
else: vdata = prepareGiftiVertexData(vdata, filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment