Commit e701c872 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

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

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