Multiple Polygons Visualization XML format

Hi All,

I would like to visualize multiple polygons in ParaView (see figure attached). I have the position of all vertices on a polygon surface and I want to write them in a VTK file (XML format). Can anyone share any related example/tutorial/document? Thanks!

multi polygons xml

Here is the documentation on how to write XML vtk file directly.
https://lorensen.github.io/VTKExamples/site/VTKFileFormats/