Skip to content

Generalize GetMeshMTime to vtkDataset

Léon Victor requested to merge leon.victor/vtk:generalize-getmeshmtime into master

Currently, only vtkPolyData and vtkUnstructuredGrid support the "Mesh Modification Time" feature through their method GetMeshMTime. It is useful to avoid some unnecessary recomputation in cases where the geometry of a dataset doesn't change between updates, but the point/cell data potentially do.

With this MR we move the abstract logic up to vtkDataSet to allow more filters and datasets to take advantage of the feature. The default behavior is to simply return the MTime, so in the worst case any modification is considered to change the mesh.

Edited by Léon Victor

Merge request reports