question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PointData Arrays not loaded

See original GitHub issue

I have converted this unstructured grid file with vtkDataConverter (passing the -e option) to the following vtk-js format file

https://github.com/bilke/vtk-js-test/tree/master/dist/data/square_1e2_neumann_pcs_0_ts_1_t_1.000000.vtu

I then try to read it:

const reader = vtkHttpDataSetReader.newInstance({ enableArray: true, fetchGzip: true });
reader.setUrl(`./data/square_1e2_neumann_pcs_0_ts_1_t_1.000000.vtu`).then((reader, dataset) => {
  console.log('Metadata loaded with the geometry', dataset);

  reader.loadData().then((reader, dataset) =>{
    reader.getArrays().forEach(array => {
      console.log('-', array.name, array.location, ':', array.enable);
    });
  });
});

But unfortunately there are no point arrays defined (no console output and I also cannot map scalars to colors with one of the arrays). The index.json looks valid. Do you have any ideas what’s wrong here?

Also reader.listArrays as stated in docs seems not to be a valid variable or function.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jourdaincommented, Jan 27, 2017
screen shot 2017-01-27 at 9 35 53 am

Just pushed a fix for the generator

0reactions
jourdaincommented, Jan 27, 2017

Then you may want to do mapper.setInterpolateScalarsBeforeMapping(true)

to get

screen shot 2017-01-27 at 9 54 49 am
Read more comments on GitHub >

github_iconTop Results From Across the Web

VTK Data does not appear in CellData or PointData (numpy ...
I'm assuming it's there somewhere. Anyone know why they, e.g., 'meanstress', don't appear as keys? python · vtk.
Read more >
VTK/Tutorials/DataArrays - KitwarePublic
An ArrayType is a subclass of vtkDataArray. It specifies not only a ValueType, but an array implementation as well. This becomes important as ......
Read more >
5. Using NumPy for processing data - ParaView Documentation
Please note that this example is not very easily replicated by using pure NumPy. ... In the Script , we access the RTData...
Read more >
[General] Paraview not reading some fields in dataset
When trying to load the dataset into Paraview I get the following ... Cannot read point data array "Cyl_Velocity" from PointData in piece...
Read more >
[Paraview] Paraview Not Reading Some Fields in Dataset
When trying to load the dataset >>> into Paraview I get the ... Cannot read point data array "Cyl_Velocity" from PointData in piece...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found