Get POINTS and Polydata?

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

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)