Skip to content

for each cell on a grid, evaluate a expresion on all neighbors

License

Notifications You must be signed in to change notification settings

pemn/vtk_cell_neighbors

Repository files navigation

📌 Description

for each cell on a 3d grid/block model, evaluate a expression on all neighbors

📸 Screenshot

screenshot1

📝 Parameters

name optional description
data grid with original data in VTK file format
distance how many cells away from center block should be used
0 immediate neighbors (max of 6)
1 neighbors within a distance of 1 cells (max of 26)
2 neighbors within a distance of 2 cells (max of 124)
3
fields ☑️ path to save modified grid
display show results in a 3d voxel chart

📓 Notes

  • When distance is == 0 the VTK builtin function cell_neighbors() is used. otherwise will fall back to a slower custom algorithm.
  • diagonal blocks will only be included on distance >= 1.
  • the search region is a square, not a sphere.

📚 Examples

screenshot2

🧊 Test Data

grid_16_12_8_100.vtk
std_voxel_0.vtk

🧩 Compatibility

distribution status
winpython_icon
vulcan_icon
anaconda_icon

🙋 Support

Any question or problem contact:

  • paulo.ernesto

💎 License

Apache 2.0 Copyright vale_logo_only Vale 2024

About

for each cell on a grid, evaluate a expresion on all neighbors

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published