Issue loading VTK file

jsalas424
Sun, 24 Jul 2022 17:04:30 +0000
Support

Hello,

I generated a VTK file matlab using vtkwrite from triangle mesh data.

The raw data looks like this:

16.2150000000000	13.2360000000000	126.065000000000
16.1490000000000	14.2370000000000	125.708000000000
16.8430000000000	13.7070000000000	125.851000000000
15.1780000000000	14.2980000000000	127.202000000000
16.7530000000000	14.3570000000000	125.554000000000
17.0650000000000	12.6940000000000	126.724000000000
16.1660000000000	12.0880000000000	126.873000000000
...............

Here’s the VTK exported file: # vtk DataFile Version 2.0VTK from MatlabASCIIDATASET POLYDATAPOINTS 100 - Pastebin.com

When I load this into Slicer 5.0.3 it just crashes immediately

So I opened up Slicer 4.11.20210226 and got the following error:

- Error: Loading C:/.../mesh.vtk - ERROR: In D:\D\S\Slicer-1-build\VTK\IO\Legacy\vtkDataReader.cxx, line 3177
vtkPolyDataReader (000001BD00FACD60): Error reading ascii cell data! for file: C:/..../mesh.vtk
- Error: Loading C:/.../mesh.vtk - Failed to read node mesh_1 (vtkMRMLModelNode5) from filename='C:/.../mesh.vtk'

4 posts - 2 participants