VTU extracting polygonal geometry information in c++ - example code ?

I am looking for VTK C++ code which illustrate the extraction of polygonal mesh information from VTU files.

My current aim is to write some C++ code (for self learning) to read a *.vtu file and write out a *.obj file.

Eventually, I plan to write out the polygonal mesh information from *.vtu file to a custom file format hence I am interested in the details/internals for VTU

Thank you.

Hello @Nicholas_Yue,

The vtkDataSetSurfaceFilter can help you convert an unstructured grid to a polydata. See VTK: vtkDataSetSurfaceFilter Class Reference

Thank you @jaswantp this looks promising, I will do some R&D with the class.