Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michiel Cottaar
fslpy
Commits
af574f26
Commit
af574f26
authored
Jan 21, 2018
by
Paul McCarthy
🚵
Browse files
Duh, Mesh.init(fixWinding) was not being passed through. Use absolute data
file path for vertex data key.
parent
78b22de4
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl/data/mesh.py
View file @
af574f26
...
@@ -214,7 +214,7 @@ class Mesh(notifier.Notifier, meta.Meta):
...
@@ -214,7 +214,7 @@ class Mesh(notifier.Notifier, meta.Meta):
# Add initial vertex
# Add initial vertex
# set if provided
# set if provided
if
vertices
is
not
None
:
if
vertices
is
not
None
:
self
.
addVertices
(
vertices
)
self
.
addVertices
(
vertices
,
fixWinding
=
fixWinding
)
def
__repr__
(
self
):
def
__repr__
(
self
):
...
@@ -417,8 +417,9 @@ class Mesh(notifier.Notifier, meta.Meta):
...
@@ -417,8 +417,9 @@ class Mesh(notifier.Notifier, meta.Meta):
nvertices
=
self
.
vertices
.
shape
[
0
]
nvertices
=
self
.
vertices
.
shape
[
0
]
if
vdata
.
shape
[
0
]
!=
nvertices
:
if
vdata
.
ndim
not
in
(
1
,
2
)
or
vdata
.
shape
[
0
]
!=
nvertices
:
raise
ValueError
(
'Incompatible vertex data size: {}'
.
format
(
key
))
raise
ValueError
(
'{}: incompatible vertex data '
'shape: {}'
.
format
(
key
,
vdata
.
shape
))
self
.
__vertexData
[
key
]
=
vdata
.
reshape
(
nvertices
,
-
1
)
self
.
__vertexData
[
key
]
=
vdata
.
reshape
(
nvertices
,
-
1
)
...
...
fsl/data/vtk.py
View file @
af574f26
...
@@ -71,8 +71,8 @@ class VTKMesh(fslmesh.Mesh):
...
@@ -71,8 +71,8 @@ class VTKMesh(fslmesh.Mesh):
fslmesh
.
Mesh
.
__init__
(
self
,
fslmesh
.
Mesh
.
__init__
(
self
,
indices
,
indices
,
name
,
name
=
name
,
dataSource
,
dataSource
=
dataSource
,
vertices
=
data
,
vertices
=
data
,
fixWinding
=
fixWinding
)
fixWinding
=
fixWinding
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment