Skip to content

New probe filter and massively improve interpolate filter#842

Merged
banesullivan merged 7 commits intomasterfrom
feat/filter-probe
Jul 24, 2020
Merged

New probe filter and massively improve interpolate filter#842
banesullivan merged 7 commits intomasterfrom
feat/filter-probe

Conversation

@banesullivan
Copy link
Copy Markdown
Member

@banesullivan banesullivan commented Jul 22, 2020

Overview

This introduces a new probe filter based on vtkProbeFilter per pyvista/pyvista-support#203 and has some massive improvements to the interpolate filter.

cc @jrwrigh

Details

  • See Usage of sample seems backwards to me pyvista-support#203 for details on the probe filter
  • The interpolate filter was wildly inefficient for large datasets and required the use of an intermediate UniformGrid during the interpolation. This removes that intermediate step so that the gaussian interpolation happens directly on the calling mesh. This has drastic performance differences when interpolating large meshes and yields the exact same results for our example use cases. The arguments for the method have rightfully changed (DEPRECATION), but it's well worth the improvement
    • So much more is possible with this implementation that was previously not doable with the uniform grid sampling approach.
    • Note that we have to cast some inputs to an unstructured grid due to how the point locator and interpolator interface with the source data.
  • See the super awesome use case for the interpolate filter at the bottom of Array is not preserved after decimation filter pyvista-support#211 (comment)

@banesullivan banesullivan added enhancement Changes that enhance the library deprecation Deprecation involved. PRs that deprecate things. labels Jul 22, 2020
Copy link
Copy Markdown
Member

@akaszynski akaszynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added example docs and tests, otherwise I think it's good to merge. Thanks for your work!

@banesullivan banesullivan merged commit 93cfcff into master Jul 24, 2020
adeak added a commit to adeak/pyvista that referenced this pull request Nov 9, 2020
* upstream/master: (37 commits)
  🔧 Fix unused variables (pyvista#847)
  Add better Unstructured Grid Documentation (pyvista#845)
  Fix typo in plotting.py (pyvista#846)
  Feat: Implement compute_derivative (pyvista#837)
  New probe filter and massively improve interpolate filter (pyvista#842)
  Clarify clip filter docstring (pyvista#840)
  Update create-structured-surface.py (pyvista#844)
  Update topo-map.py (pyvista#841)
  Add release suffix to version string (pyvista#817)
  Add pathlib Support (pyvista#836)
  Add tolerance argument to sample_over_line (pyvista#828)
  vector slice from pyvista/pyvista-support#134 (pyvista#808)
  Fix is_all_triangles (pyvista#832)
  Misc. documentation fixes (pyvista#829)
  Follow up pyvista#793: fix get_data_range (pyvista#818)
  Fix GPU info in scooby report (pyvista#825)
  Patch for auto_close warning (pyvista#798)
  Add texture demo with scalar data (pyvista#821)
  MAINT: Log init start/stop (pyvista#819)
  Add PolyData strip filter (pyvista#807)
  ...
@akaszynski akaszynski deleted the feat/filter-probe branch November 10, 2020 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation Deprecation involved. PRs that deprecate things. enhancement Changes that enhance the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants