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 voxel support #155

Merged
merged 1 commit into from
Oct 5, 2022
Merged

add voxel support #155

merged 1 commit into from
Oct 5, 2022

Conversation

akaszynski
Copy link
Collaborator

Simple PR to add voxel support. Voxels are the output when casing a uniform grid to an unstructured grid in PyVista.

This is an unlikely edge case, but still came up within testing and it's an easy feature.

from ansys.mapdl.reader import save_as_archive
import pyvista as pv
d = 100
grid = pv.UniformGrid(dims=(d, d, d)).cast_to_unstructured_grid()
save_as_archive(filename, grid)

@akaszynski akaszynski merged commit 4c3e876 into main Oct 5, 2022
@akaszynski akaszynski deleted the feat/voxel branch October 5, 2022 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant