Operating system: windows 10
Slicer version: 4.11
Expected behavior:
Actual behavior:
I am able to view this vtk file using paraview under points gaussian but not when I upload this to slicer. Is there a reason I am unable to see the vtk data in slicer? And how do I make it visible?
@jcfr Sorry, yes I do see an error. “.vtk does not contain coordinate system information. Assuming LPS.” I cant upload the file though. Have you seen this error. Anyhting I can do ?
Lack of coordinate system information is just a warning, you can ignore it because the assumption of LPS is probably correct.
If you need to use points Gaussian to see the data set in Paraview then probably you do not have any cells. To display point cloud, you need to at least specify vertex cells, or run the point cloud through a glyph filter or surface reconstructor.
For example, if you want to apply a glyph filter on a point cloud loaded as a model node in Slicer then copy-paste this snippet into Slicer’s Python console:
modelNode = getNode('MyModel') # replace this with the actual name of your model node
glyph=vtk.vtkGlyph3D()
glyph.SetInputData(modelNode.GetPolyData())
glyph.Update()
modelNode.SetAndObservePolyData(glyph.GetOutput())
I just wanted to view the points as a 3d model in slicer. Thanks for that, I tried the glyph filter method but I get this: AttributeError: ‘MRMLCorePython.vtkMRMLModelNode’ object has no attribute ‘GetPointData’