Reading data from a raw VTK (.vtu) file
问题 I want to extract data arrays from a .vtu file using the Python VTK module. The file looks like this (the raw data at the end of the file is ommitted): <?xml version="1.0"?> <VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian"> <UnstructuredGrid> <Piece NumberOfPoints="10471" NumberOfCells="64892"> <PointData> <DataArray type="Float64" Name="potential" NumberOfComponents="1" format="appended" offset="0"/> <DataArray type="Float64" Name="electric field" NumberOfComponents=