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
1b97e99a
Commit
1b97e99a
authored
Jan 21, 2018
by
Paul McCarthy
🚵
Browse files
Mesh.__init__ accepts fixWinding for initial vertex set.
parent
91148e64
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl/data/mesh.py
View file @
1b97e99a
...
...
@@ -136,7 +136,12 @@ class Mesh(notifier.Notifier, meta.Meta):
"""
def
__init__
(
self
,
indices
,
name
=
'mesh'
,
dataSource
=
None
,
vertices
=
None
):
def
__init__
(
self
,
indices
,
name
=
'mesh'
,
dataSource
=
None
,
vertices
=
None
,
fixWinding
=
False
):
"""Create a ``Mesh`` instance.
Before a ``Mesh`` can be used, some vertices must be added via the
...
...
@@ -151,6 +156,9 @@ class Mesh(notifier.Notifier, meta.Meta):
:arg vertices: Initial vertex set to add - given the key
``'default'``.
:arg fixWinding: Ignored if ``vertices is None``. Passed through to the
:meth:`addVertices` method along with ``vertices``.
"""
self
.
__name
=
name
...
...
fsl/data/vtk.py
View file @
1b97e99a
...
...
@@ -60,9 +60,12 @@ class VTKMesh(fslmesh.Mesh):
raise
RuntimeError
(
'All polygons in VTK file must be '
'triangles ({})'
.
format
(
infile
))
fslmesh
.
Mesh
.
__init__
(
self
,
indices
,
name
,
dataSource
)
self
.
addVertices
(
data
,
'default'
,
fixWinding
=
fixWinding
)
fslmesh
.
Mesh
.
__init__
(
self
,
indices
,
name
,
dataSource
,
vertices
=
data
,
fixWinding
=
fixWinding
)
def
loadVTKPolydataFile
(
infile
):
...
...
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