# How do you render VTK files of type STRUCTURED\_POINTS?

**URL:** https://discourse.vtk.org/t/how-do-you-render-vtk-files-of-type-structured-points/9451
**Category:** Web
**Created:** [September 26, 2022, 2:06am UTC](https://discourse.vtk.org/t/how-do-you-render-vtk-files-of-type-structured-points/9451 "2022-09-26T02:06:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![team\_14](https://discourse.vtk.org/user_avatar/discourse.vtk.org/team_14/32/5839_2.png) [@team\_14](https://discourse.vtk.org/u/team_14)
#### Post date: [September 26, 2022, 2:06am UTC](https://discourse.vtk.org/t/how-do-you-render-vtk-files-of-type-structured-points/9451/1 "2022-09-26T02:06:03Z")

</div>

I am trying to render a VTK file of type STRUCTURED\_POINTS and am hoping for some guidance on how to approach this. I have done the following so far and have described where I am currently stuck:

I started off the project by using the [VTI file upload example](https://kitware.github.io/vtk-js/examples/VolumeViewer.html) from the vtk website where you drop in a vti file and you are able to view it. I want to adapt the code so that VTK files of type STRUCTURED\_POINTS can be dropped in and viewed.

In my research, my understanding is that I need to use a different reader. Instead of vtkXMLImageDataReader which is used in the VTI example, I should be using vtkXMLPolyDataReader. But, I still was getting issues.

Upon more investigation, I noticed that the VTK file I want to be viewed is of type STRUCTURED\_POINTS, not POLYDATA. I found that there is a vtkXMLStructuredGridReader which I thought was the right route but noticed that in the @kitware/vtk.js folder, there is no such thing. vtkXMLReader is the last reader left but it doesn’t have the functions that are used in the vti example such as the .newInstance() and .parseAsArrayBuffer().

I am not too sure where to go from here. Any advice/guidance is very much appreciated.

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [September 26, 2022, 6:31am UTC](https://discourse.vtk.org/t/how-do-you-render-vtk-files-of-type-structured-points/9451/2 "2022-09-26T06:31:25Z")

</div>

Structured points data type is not implemented in VTK.js. It is very similar to Image Data. Can’t you use that instead ? What type of visualisation do you want to do with a Structured point ?  
You may want to create a convenient XMLStructuredPointsReader that reads a STRUCTURED\_POINTS file but generates a vtkImageData as output (look how XMLImageDataReader is implemented). If you do so, please contribute it back to VTK.js 🙂
