# Get POINTS and Polydata?

**URL:** https://discourse.slicer.org/t/get-points-and-polydata/2512
**Category:** Support
**Tags:** vtk
**Created:** [April 4, 2018, 10:33am UTC](https://discourse.slicer.org/t/get-points-and-polydata/2512 "2018-04-04T10:33:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MGM](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@MGM](https://discourse.slicer.org/u/MGM)
#### Post date: [April 4, 2018, 10:33am UTC](https://discourse.slicer.org/t/get-points-and-polydata/2512/1 "2018-04-04T10:33:42Z")

</div>

Hello,

I’m working on vtk, and I’m looking for a solution, to generate a vtk file, which contains, POINTS and Polydata.

in others way, no need to SCALARS and NORMALS.

I used " vtkPolyDataWriter ", to generate the vtk file.

any suggestion

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [April 4, 2018, 6:29pm UTC](https://discourse.slicer.org/t/get-points-and-polydata/2512/2 "2018-04-04T18:29:21Z")

</div>

This is a general VTK question and not specific to Slicer, but here is the solution anyway:

```
while mypolydata.GetPointData().GetNumberOfArrays()>0:
  mypolydata.GetPointData().RemoveArray(0)
```
