# vtkUnstructuredGrid (.vtu data) with vtkJS

**URL:** https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549
**Category:** Web
**Created:** [June 15, 2020, 11:15am UTC](https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549 "2020-06-15T11:15:41Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![felixHub](https://discourse.vtk.org/user_avatar/discourse.vtk.org/felixhub/32/1976_2.png) [@felixHub](https://discourse.vtk.org/u/felixHub)
#### Post date: [June 15, 2020, 11:15am UTC](https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549/1 "2020-06-15T11:15:41Z")

</div>

Hi,  
I’m developing a web app using vtkjs, but I need to work with vtkUnstructurerdGrid data. I’ve already tried the readers available in vtkjs repo, but they seems don’t work. Can someone help me ?

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [June 15, 2020, 11:55am UTC](https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549/2 "2020-06-15T11:55:24Z")

</div>

vtk.js mostly focus on rendering meaning that it handle vtkPolyData for geometry rendering and vtkImageData for volume rendering.

In your use case you need to dynamically convert your data into vtkPolyData (just the skin) for the rendering. In VTK/C++, we use the geometry filter to perform this action in a transparent manner behind data readers or processing filters.

Such filter could be brought onto the client by building a WebAssembly module from VTK/C++.

---

<div class="post-metadata">

### Author: ![felixHub](https://discourse.vtk.org/user_avatar/discourse.vtk.org/felixhub/32/1976_2.png) [@felixHub](https://discourse.vtk.org/u/felixHub)
#### Post date: [June 15, 2020, 12:16pm UTC](https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549/3 "2020-06-15T12:16:04Z")

</div>

yep, I’ve tried to convert my .vtu data in .vtp polyData with paraview (using Extract Region Surface filter), but in this way I lost che internal area.  
More specifically I would apply, for example, the vtkCutter to view the internal section.  
Is there a way to do this ?

---

<div class="post-metadata">

### Author: ![thewtex](https://discourse.vtk.org/user_avatar/discourse.vtk.org/thewtex/32/55_2.png) [@thewtex](https://discourse.vtk.org/u/thewtex)
#### Post date: [June 15, 2020, 2:28pm UTC](https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549/4 "2020-06-15T14:28:34Z")

</div>

> [@Sebastien\_Jourdain](#):
>
> Such filter could be brought onto the client by building a WebAssembly module from VTK/C++.

This is available in itk.js:

[https://insightsoftwareconsortium.github.io/itk-js/docs/polydata\_formats.html](https://insightsoftwareconsortium.github.io/itk-js/docs/polydata_formats.html)

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [June 15, 2020, 4:29pm UTC](https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549/5 "2020-06-15T16:29:25Z")

</div>

> <https://github.com/Kitware/vtk-js/issues/1488>
>
> HI,
> I’m developing a web app using vtkjs, but I need to work with vtkUnstructuredGrid data. I’ve already tried the readers available...

---

<div class="post-metadata">

### Author: ![sridhar-mani](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sridhar-mani/32/9522_2.png) [@sridhar-mani](https://discourse.vtk.org/u/sridhar-mani)
#### Post date: [January 2, 2025, 3:26pm UTC](https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549/6 "2025-01-02T15:26:30Z")

</div>

have you found any solution

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [January 2, 2025, 4:03pm UTC](https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549/7 "2025-01-02T16:03:16Z")

</div>

Solutions have been provided to you, on your other open threads.
