# Difference between vtkStructuredPoints and vtkStructuredPointsReader?

**URL:** https://discourse.vtk.org/t/difference-between-vtkstructuredpoints-and-vtkstructuredpointsreader/1247
**Category:** Support
**Created:** [July 2, 2019, 11:09am UTC](https://discourse.vtk.org/t/difference-between-vtkstructuredpoints-and-vtkstructuredpointsreader/1247 "2019-07-02T11:09:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jesper\_Henriksen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jesper_henriksen/32/563_2.png) [@Jesper\_Henriksen](https://discourse.vtk.org/u/Jesper_Henriksen)
#### Post date: [July 2, 2019, 11:09am UTC](https://discourse.vtk.org/t/difference-between-vtkstructuredpoints-and-vtkstructuredpointsreader/1247/1 "2019-07-02T11:09:01Z")

</div>

Hi,

I need a way to transform a vtkStructuredPoints into a vtkAlgorithmOutput

I have a problem using the streamtracer.

When I load vector information using the vtkStructuredPointsReader, I can set the SetInputConnection used of the vtkStreamTracer, but when I generate a vtkStructuredPoints object I’m unable to set the inputconnection as the vtkStructuredPoints does not have a outputport.  
Funny thing is; if I save the vtkStructuredPoints to a file and load the data using vtkStructuredPointsReader it works perfectly.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [July 2, 2019, 11:34am UTC](https://discourse.vtk.org/t/difference-between-vtkstructuredpoints-and-vtkstructuredpointsreader/1247/2 "2019-07-02T11:34:58Z")

</div>

what about `vtkStreamTracer::SetInputData()` ?

---

<div class="post-metadata">

### Author: ![Jesper\_Henriksen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jesper_henriksen/32/563_2.png) [@Jesper\_Henriksen](https://discourse.vtk.org/u/Jesper_Henriksen)
#### Post date: [July 2, 2019, 11:39am UTC](https://discourse.vtk.org/t/difference-between-vtkstructuredpoints-and-vtkstructuredpointsreader/1247/3 "2019-07-02T11:39:33Z")

</div>

Hi, it turns out that one needs to set the name of the active vectors by calling:

vtkfloatArray.SetName(“VectorName”)

on the underlying vtkFloatArray and setting the active vectors to this name on the vtkStructuredPoints object:

structuredPoints.GetPointData().SetActiveVectors(“VectorName”)

and then using the structured points  
by setting:

vtkstreamer vtkstreamer.SetInputData(structuredPoints)

Hope this helps other that have struggled with this too 🙂

---

<div class="post-metadata">

### Author: ![HHU.HZ](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/h/f1d935/32.png) [@HHU.HZ](https://discourse.vtk.org/u/HHU.HZ)
#### Post date: [October 25, 2020, 6:28am UTC](https://discourse.vtk.org/t/difference-between-vtkstructuredpoints-and-vtkstructuredpointsreader/1247/4 "2020-10-25T06:28:49Z")

</div>

Hi,

I have the same trouble but does not solved.

I just wonder how does the point data pass？

> [@Jesper\_Henriksen](#):
>
> vtkstreamer vtkstreamer.SetInputData(structuredPoints)

Any help will be greatly appreciated.
