pyvista / pyvista-xarray

xarray DataArray accessors for PyVista
Apache License 2.0
100 stars 7 forks source link

Refactor algorithm to not regenerate the mesh on each update #52

Closed banesullivan closed 1 year ago

banesullivan commented 1 year ago

Currently, the RequestData step of the algorithm completely regenerates the mesh. We should change this so that the mesh is generated once up-front, then only the data values update on the RequestData step

banesullivan commented 1 year ago

The performance gain from this might be marginal for rectilinear since the XYZ arrays are directly shared... only references are regenerated