From 89758edd084dc59dd85908afc2e49ba9d1dc4230 Mon Sep 17 00:00:00 2001 From: wuxx Date: Thu, 12 Dec 2024 20:58:15 +0800 Subject: [PATCH] fix: vtkXMLPolyDataWriter Support Save FieldData --- Sources/IO/XML/XMLPolyDataWriter/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/IO/XML/XMLPolyDataWriter/index.js b/Sources/IO/XML/XMLPolyDataWriter/index.js index 8edcd7c50f2..dd4744dc704 100644 --- a/Sources/IO/XML/XMLPolyDataWriter/index.js +++ b/Sources/IO/XML/XMLPolyDataWriter/index.js @@ -50,6 +50,11 @@ function vtkXMLPolyDataWriter(publicAPI, model) { 'CellData', dataObject.getCellData() ); + publicAPI.processDataSetAttributes( + piece, + 'FieldData', + dataObject.getFieldData() + ); publicAPI.processDataArray(piece.ele('Points'), dataObject.getPoints()); POLYDATA_FIELDS.forEach((cellType) => {