Your grid has 2x2x2 points which means it has 1x1x1 cells. You'll need 3x3x3 points to get 2x2x2 cells.
Dan On Sun, May 24, 2015 at 3:18 PM, Dmitry Grebennikov <[email protected]> wrote: > Hello! > > What I want to be displayed as an illustration of LUT usage is the cube > composed of 8 multicolored cubes... > Could you please explain me the following error, which I get trying to > load the corresponding vtk file? > > > ERROR: In > /home/coincoin/build/paraview/src/ParaView-v4.3.1-source/VTK/IO/Legacy/vtkStructuredGridReader.cxx, > line 285 > > vtkStructuredGridReader (0x4d0f700): Number of cells don't match! > > The file in ASCII format is the following: > > # vtk DataFile Version 2.0 > header > ASCII > DATASET STRUCTURED_GRID > DIMENSIONS 2 2 2 > POINTS 8 int > 0 0 0 > 1 0 0 > 0 1 0 > 1 1 0 > 0 0 1 > 1 0 1 > 0 1 1 > 1 1 1 > CELL_DATA 8 > SCALARS scalars int 1 > LOOKUP_TABLE mytable > 1 2 3 4 5 6 7 8 > LOOKUP_TABLE mytable 8 > 0 0 0 1 > 1 0 0 1 > 0 1 0 1 > 1 1 0 1 > 0 0 1 1 > 1 0 1 1 > 0 1 1 1 > 1 1 1 1 > > Thank you in advance! > > Dmitry Grebennikov > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
