diff --git a/fsl/data/mesh.py b/fsl/data/mesh.py index bb2d9b2377ad25dec43614387d0383eabf086100..395c78e4541e6f3140c1d830feb506b7bf9f3af9 100644 --- a/fsl/data/mesh.py +++ b/fsl/data/mesh.py @@ -698,7 +698,7 @@ def needsFixing(vertices, indices, fnormals, loBounds, hiBounds): class TriangleMesh(Mesh): - """Deprecated - use :class:`fsl.data.mesh.Mesh`, or one 'of its sub-classes + """Deprecated - use :class:`fsl.data.mesh.Mesh`, or one of its sub-classes instead. """ @@ -783,3 +783,13 @@ def findReferenceImage(*args, **kwargs): """Deprecated - use :func:`fsl.data.vtk.findReferenceImage` instead. """ import fsl.data.vtk as fslvtk return fslvtk.findReferenceImage(*args, **kwargs) + + +ALLOWED_EXTENSIONS = ['.vtk'] +"""Deprecated, will be removed in fslpy 2.0.0. Use +:attr:`fsl.data.vtk.ALLOWED_EXTENSIONS` instead.""" + + +EXTENSION_DESCRIPTIONS = ['VTK polygon model file'] +"""Deprecated, will be removed in fslpy 2.0.0. Use +:attr:`fsl.data.vtk.EXTENSION_DESCRIPTIONS` instead.""" diff --git a/fsl/data/vtk.py b/fsl/data/vtk.py index e34d4146dd0d1fe9828783782f9524ec89964596..24835e7a3099ea54979d1f6c63cb7157b3e2bf51 100644 --- a/fsl/data/vtk.py +++ b/fsl/data/vtk.py @@ -7,6 +7,15 @@ """This module provides the :class:`VTKMesh` class, for loading triangle meshes from VTK files. +A handful of convenience functions are also in this module: + +.. autosummary:: + :nosignatures: + + loadVTKPolyDataFile + getFIRSTPrefix + findReferenceImage + .. note:: I/O support is very limited - currently, the only supported file type is the VTK legacy file format, containing the ``POLYDATA``