Actually, I am constructing those points and polys with a delaunay triangulation : get the points from a database then I use spicy.spatial Delaunay to get the polys.

I tried your solution :

```
nb_points = int(len(points) / 3)
vtk_points = vtk.vtkPoints()
for i in range(nb_points):
vtk_points.InsertNextPoint(float(points[i*3]), float(points[i*3+1]), float(points[i*3+2]))
vtk_polydata = vtk.vtkPolyData()
vtk_polydata.SetPoints(vtk_points)
```

but the coordinates of the points were converted to ints for no reason.

So I ended up writing directly in a file and it worked :

```
vtk_polys = f.vtk_polys(polys)
nb_points = int(len(points) / 3)
nb_polys = int(len(vtk_polys) / 3)
print(nb_polys)
with open(filepath, 'w') as file:
for i in range(nb_points):
file.write("v %.4f %.4f %.4f\n" % (float(points[i*3]), float(points[i*3+1]), float(points[i*3+2])))
for i in range(nb_polys):
file.write("f %d %d %d\n" % (int(vtk_polys[i*3] + 1), int(vtk_polys[i*3+1] + 1), int(vtk_polys[i*3+2] + 1)))
file.close()
```

The vtk_polys function is used to remove all the â€ś3â€ť in `polys`

:

`[3, x0, y0, z0, 3, x1, y1, z1 ...]`

â†’ `[x0, y0, z0, x1, y1, z1 ...]`

For the hover : it works just fine with the Sebastianâ€™s solution !

Thank you everyone for your time and precious help !