Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can vtk.js read VTK files with the 'DATASET UNSTRUCTURED_GRID' format? #3066

Open
YuJ1Nan opened this issue May 6, 2024 · 7 comments
Open
Labels
module: I/O type: feature request 💡 Desired capabilities / enhancements

Comments

@YuJ1Nan
Copy link

YuJ1Nan commented May 6, 2024

Feature Request

A way to read the UNSTRUCTURED_GRID type of VTK files

Motivation and Detailed Description

I only found vtkPolyDataReader in the project, which cannot read the UNSTRUCTURED_GRID type of VTK files that I want to use. Is there another way to read these files, or is it not yet supported?

@YuJ1Nan YuJ1Nan added the type: feature request 💡 Desired capabilities / enhancements label May 6, 2024
@YuJ1Nan
Copy link
Author

YuJ1Nan commented May 6, 2024

I converted the UNSTRUCTURED_GRID type of VTK files to HttpDataSet using pvpython, but I still can't use them with vtkHttpDataSetReader.

@finetjul
Copy link
Member

finetjul commented May 6, 2024

Indeed, unstructured grids are not supported in VTK.js.

#3014 (comment)

@YuJ1Nan
Copy link
Author

YuJ1Nan commented May 6, 2024

Thanks, If I want to display UNSTRUCTURED_GRID type of VTK files on the web, what should I do?

@finetjul
Copy link
Member

finetjul commented May 6, 2024

That's precisely what this comment talks about: #3014 (comment)

@YuJ1Nan
Copy link
Author

YuJ1Nan commented May 6, 2024

"Okay, but actually I did not see support for this type of file on the website
https://docs.vtk.org/en/latest/supported_data_formats.html. Is it still under development?"

@finetjul
Copy link
Member

finetjul commented May 6, 2024

VTU files are supported by VTK C++. They are not supported by VTK.js.

@YuJ1Nan
Copy link
Author

YuJ1Nan commented May 6, 2024

alright, it seems the only way is to use VTK C++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: I/O type: feature request 💡 Desired capabilities / enhancements
Projects
None yet
Development

No branches or pull requests

2 participants