# How to manually create a polyData with multi line segments in vtk.js

**URL:** https://discourse.vtk.org/t/how-to-manually-create-a-polydata-with-multi-line-segments-in-vtk-js/3636
**Category:** Web
**Created:** [June 25, 2020, 12:40am UTC](https://discourse.vtk.org/t/how-to-manually-create-a-polydata-with-multi-line-segments-in-vtk-js/3636 "2020-06-25T00:40:42Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![meihuisu](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/9fc348/32.png) [@meihuisu](https://discourse.vtk.org/u/meihuisu)
#### Post date: [June 26, 2020, 12:55am UTC](https://discourse.vtk.org/t/how-to-manually-create-a-polydata-with-multi-line-segments-in-vtk-js/3636/2 "2020-06-26T00:55:20Z")

</div>

> [@Manually Create PolyData in vtk.js](https://discourse.vtk.org/t/manually-create-polydata-in-vtk-js/885/4):
>
> One thing that could be worth adding to the vtkDataArray could be the setTuple{1,2,3,6} methods. That way you could have a similar feel. But we were also trying not to wrap any functionality that could be naturally achieved on the native JS arrays.

is the link I wanted to point to. Thanks. got my reader working.

---

_[View the full topic](https://discourse.vtk.org/t/how-to-manually-create-a-polydata-with-multi-line-segments-in-vtk-js/3636)._
