How to export PointDatasetInterpolator as a vtp file?

Hi team,

I have an STL file and a point dataset (CSV) from an experiment. I used TabletoPoint and PointDatasetInterpolator (with a Gaussian kernel) to interpolate the value distribution over my surface mesh. Everything is working great until this point. Now I want to export this interpolated and smoothed data as a vtp file. This should ideally have the mesh and the values combined.

I have tried saving PointDatasetInterpolator as it is and using ResampleWithDataset, and then saving that output. But I get an error in both cases, and the error is the same.

ERROR: In vtkXMLParser.cxx, line 375
vtkXMLDataParser (0x5d2dabb77fd0): Error parsing XML in stream at line 52, column 0, byte index 3018: not well-formed (invalid token)

ERROR: In vtkXMLReader.cxx, line 520
vtkXMLPolyDataReader (0x5d2da50e97a0): Error parsing input file.  ReadXMLInformation aborting.

ERROR: In vtkExecutive.cxx, line 740
vtkCompositeDataPipeline (0x5d2dae7cd100): Algorithm vtkXMLPolyDataReader (0x5d2da50e97a0) returned failure for request: vtkInformation (0x5d2da4860f20)
  Debug: Off
  Modified Time: 6461633
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0

Please share your data

Hi Mathieu,

Thank you for the reply. Sorry, I forgot I had asked this question. I managed to export it as vtk, and that was sufficient for my usecase. Unfortunately, I cannot share the dataset as it’s a funded project. Thank you once again.

Do not hesitate to reach out to Kitware for a NDA then :slight_smile:

1 Like