PHASTA / vtkpytools

Internal tools for using VTK
https://fluid.colorado.edu/wiki/index.php/VTKpytools
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

feat: Add function for creating 3D grids #36

Closed jrwrigh closed 3 years ago

jrwrigh commented 3 years ago

Adds form3DGrid function under the new gridtools3d module.

Possible future improvements would be to base cell type (and thus mixed vs. pure mesh) on counting unique IDs per element. This may be more efficient as well, as it only requires looping through the connectivity array once (compared to n-1 times, where n is the number of unique cell types to be tested). See SO Answer for performance tests of different "unique" counters (specifically the sorting example function)