Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update contour_labeled filter #5968

Draft
wants to merge 66 commits into
base: main
Choose a base branch
from

Conversation

user27182
Copy link
Contributor

Overview

Add new params and update a few existing ones for the contour_labeled filter.

Some of these features are used directly by #5966.

Details

  • Add selected output style and associated select_outputs param to filter output labels
  • Add select_inputs param to filter input labels before contouring
  • Fix smoothing_constraint_distance, it currently has no effect since automatic smoothing constraints are on by default which override this value (This is fixed by setting alg.AutomaticSmoothingConstraintsOff())
  • Add smoothing_constraint_scale to allow setting a relative smoothing constraint distance
  • Modify default behavior for output_mesh_type. The default for vtkSurfaceNets is to use quads when smoothing is off, and triangles when smoothing is on. I think this dynamic default makes sense instead of forcing quads to be the default since the quads are likely non-planar for smoothed meshes.

@user27182 user27182 marked this pull request as draft April 24, 2024 23:12
@pyvista-bot pyvista-bot added the enhancement Changes that enhance the library label Apr 24, 2024
@user27182 user27182 mentioned this pull request Apr 24, 2024
5 tasks
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 99.02913% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 96.99%. Comparing base (d9dfd63) to head (52dab91).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5968   +/-   ##
=======================================
  Coverage   96.99%   96.99%           
=======================================
  Files         141      141           
  Lines       24666    24718   +52     
=======================================
+ Hits        23925    23976   +51     
- Misses        741      742    +1     

@user27182
Copy link
Contributor Author

@pyvista-bot preview

@user27182
Copy link
Contributor Author

@pyvista-bot preview

@pyvista-bot
Copy link
Contributor

@tkoyama010 tkoyama010 self-requested a review May 11, 2024 07:00
@user27182
Copy link
Contributor Author

@pyvista-bot preview

@pyvista-bot
Copy link
Contributor

@user27182
Copy link
Contributor Author

@pyvista-bot preview

@pyvista-bot
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changes that enhance the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants