Skip to content

Add Clip by Scalar#877

Merged
akaszynski merged 1 commit intomasterfrom
feat/clip_scalar
Sep 3, 2020
Merged

Add Clip by Scalar#877
akaszynski merged 1 commit intomasterfrom
feat/clip_scalar

Conversation

@akaszynski
Copy link
Copy Markdown
Member

@akaszynski akaszynski commented Sep 1, 2020

Add Clip by Scalar

This PR adds clip by scalar as requested and written by @Aquan1412.

import pyvista as pv
from pyvista import examples
dataset = examples.load_hexbeam()
clipped = dataset.clip_scalar(scalars="sample_point_scalars", value=100, invert=True)
clipped.plot()

image

Resolves #874

@akaszynski akaszynski self-assigned this Sep 1, 2020
@akaszynski akaszynski added the feature-request Please add this cool feature! label Sep 1, 2020
Copy link
Copy Markdown
Contributor

@GuillaumeFavelier GuillaumeFavelier left a comment

Choose a reason for hiding this comment

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

LGTM, great work @akaszynski, @Aquan1412

@akaszynski akaszynski merged commit c7c86f4 into master Sep 3, 2020
@akaszynski akaszynski mentioned this pull request Sep 8, 2020
@akaszynski akaszynski deleted the feat/clip_scalar branch November 10, 2020 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request Please add this cool feature!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Add support for clip by scalar

2 participants