PointData Arrays not loaded
See original GitHub issueI have converted this unstructured grid file with vtkDataConverter (passing the -e option) to the following vtk-js format file
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:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Just pushed a fix for the generator
Then you may want to do
mapper.setInterpolateScalarsBeforeMapping(true)to get