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

VTK Mesh (unstructured grid) reader #976

Open
2 of 7 tasks
aylward opened this issue Dec 10, 2018 · 12 comments
Open
2 of 7 tasks

VTK Mesh (unstructured grid) reader #976

aylward opened this issue Dec 10, 2018 · 12 comments
Assignees

Comments

@aylward
Copy link

aylward commented Dec 10, 2018

Thoughts on possible next steps:

  • 1. itk.js Mesh to vtk.js vtkPolyData in WebAssembly. This will allow use to use .vtk and other ITK-supported mesh file formats.
  • 2. A vtk.js helper class similar to ITKImageReader for PolyData
  • 3. PVG adds support for this class
  • 4. We start building some VTK PolyData IO classes to WebAssembly modules
  • 4.b. ITK SpatialObject to VTK PolyData classes to WebAssembly module(s)
  • 5. We start building some VTK Unstructured Grid IO classes to WebAssembly modules but include a filter to output PolyData
  • 6 (?). Independent Unstructured Grid to PolyData WebAssembly support, vtk.js Unstructured Grid support, Unstructured Grid IO WebAssembly

I think it might be a good test for vtk-emscripten - IO and conversion class.

@thewtex
Copy link
Member

thewtex commented Feb 7, 2019

Yes! 👾 🎇 💖

Starting on this.

Inserted 4.b) - ITK SpatialObject to VTK PolyData :-D

@wschroed
Copy link
Collaborator

wschroed commented Feb 7, 2019 via email

@thewtex
Copy link
Member

thewtex commented Feb 7, 2019

@wschroed good point. We can take an incremental approach. First to PolyData so we can just visualize them. Then to VTK Implicit Functions. We likely find that we want / need the implicit functions for cropping, cutting, etc., but individual conversions will take more time. And, vtk.js Implicit Functions support can also mature in the process.

@thewtex
Copy link
Member

thewtex commented Feb 8, 2019

#1 addressed here: InsightSoftwareConsortium/ITK-Wasm#190

@aylward aylward added module: I/O type: feature request 💡 Desired capabilities / enhancements labels Apr 23, 2021
@supriome
Copy link

supriome commented Jun 15, 2022

Hi, @aylward @thewtex Any progress of UnstructuredGrid reader?

@finetjul
Copy link
Member

@supriome technically you can support unstructured grid in vtk.js through itk.wasm. It's not easy (not well documented) but doable :-)

@thewtex
Copy link
Member

thewtex commented Jul 6, 2022

@supriome
Copy link

supriome commented Jul 7, 2022

@thewtex I finish an unstructured grid reader, then convert to polydata, use vtk.js vtkXMLPolyDataReader to render that file.
#2501 (comment)

@thewtex
Copy link
Member

thewtex commented Jul 7, 2022

@supriome good work.

We did something similar a few refactoring generations ago in itk.js, but itk-wasm improves significantly the simplicity of the interface and performance.

@supriome
Copy link

supriome commented Jul 7, 2022

Great, I'm looking forward to your final implementation, I realize that my implementation is definitely poor in terms of performance, but in order to achieve the functional requirements, this is the only way for now, if you have a better implementation, I will use your final solution

@skudev
Copy link

skudev commented Oct 29, 2024

Hi, any progress on this? I would like to migrate my vtk.js project to use itk-wasm.js instead of itk.js. My project relies on itk/readPolyDataArrayBuffer to convert .vtu (unstructured grid) to vtp. Is this possible with itk-wasm.js? If yes, is there any documentation / example how to do this?

@thewtex
Copy link
Member

thewtex commented Oct 29, 2024

Hi @skudev , I created a tracking issue here: InsightSoftwareConsortium/ITK-Wasm#1261

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants