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

Add points_to_cells and cells_to_points ImageDataFilters #6071

Merged
merged 29 commits into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ce7c558
Add point and cell voxel conversion filters
user27182 May 11, 2024
9d69fa2
Add user_dict tests for field data
user27182 May 11, 2024
03e50de
Add examples
user27182 May 11, 2024
30f591c
Merge branch 'main' into feat/convert_voxels
tkoyama010 May 11, 2024
a69c635
Add copy parameter; update docstrings
user27182 May 11, 2024
ba54730
Fix typo
user27182 May 11, 2024
a4b2410
Rename filters, update docstrings, add scalars param
user27182 May 14, 2024
c2ea685
Merge branch 'main' into feat/convert_voxels
user27182 May 14, 2024
94dc32c
Remove copied text
user27182 May 14, 2024
34659c7
Update docs
user27182 May 16, 2024
2ddb4ab
Merge main
user27182 May 16, 2024
cd8a4db
Merge branch 'main' into feat/convert_voxels
tkoyama010 May 16, 2024
e25da2c
Update tests
user27182 May 16, 2024
0726601
Update terminology and docstrings
user27182 May 16, 2024
e8f05a5
Update docs, create standalone examples
user27182 May 16, 2024
5c09fc4
Fix remeshing 2D images
user27182 May 16, 2024
6861f4c
Update examples
user27182 May 17, 2024
5ed4093
Merge main
user27182 May 17, 2024
cbb53f7
Add print statements
user27182 May 17, 2024
8e3ce45
Update printing variables
user27182 May 17, 2024
8c5dad8
Fix spacing
user27182 May 17, 2024
593c676
Remove example file
user27182 May 18, 2024
075e3a2
Remove refs to example file
user27182 May 18, 2024
9ab948e
Remove refs to example file
user27182 May 18, 2024
2783260
Merge branch 'main' into feat/convert_voxels
user27182 May 18, 2024
b996ce4
Merge branch 'main' into feat/convert_voxels
user27182 May 19, 2024
7fd8313
Merge branch 'main' into feat/convert_voxels
tkoyama010 May 19, 2024
e11842c
Merge branch 'main' into feat/convert_voxels
user27182 May 19, 2024
1d28963
Merge branch 'main' into feat/convert_voxels
user27182 May 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 14 additions & 4 deletions pyvista/core/filters/data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -3162,8 +3162,6 @@ def cell_data_to_point_data(self, pass_cell_data=False, progress_bar=False):
values of all cells using a particular point. Optionally, the
input cell data can be passed through to the output as well.

See also :func:`pyvista.DataSetFilters.point_data_to_cell_data`.

Parameters
----------
pass_cell_data : bool, default: False
Expand All @@ -3178,6 +3176,13 @@ def cell_data_to_point_data(self, pass_cell_data=False, progress_bar=False):
Dataset with the point data transformed into cell data.
Return type matches input.

See Also
--------
point_data_to_cell_data
Similar transformation applied to point data.
:meth:`~pyvista.ImageDataFilters.cells_to_points`
Re-mesh :class:`~pyvista.ImageData` to a points-based representation.

Examples
--------
First compute the face area of the example airplane mesh and
Expand Down Expand Up @@ -3248,8 +3253,6 @@ def point_data_to_cell_data(self, pass_point_data=False, progress_bar=False):
Point data are specified per node and cell data specified within cells.
Optionally, the input point data can be passed through to the output.

See also: :func:`pyvista.DataSetFilters.cell_data_to_point_data`

Parameters
----------
pass_point_data : bool, default: False
Expand All @@ -3264,6 +3267,13 @@ def point_data_to_cell_data(self, pass_point_data=False, progress_bar=False):
Dataset with the point data transformed into cell data.
Return type matches input.

See Also
--------
cell_data_to_point_data
Similar transformation applied to cell data.
:meth:`~pyvista.ImageDataFilters.points_to_cells`
Re-mesh :class:`~pyvista.ImageData` to a cells-based representation.

Examples
--------
Color cells by their z coordinates. First, create point
Expand Down