Adds form3DGrid function under the new gridtools3d module.
Currently supported grids are:
Pure Tets
Pure Hexs
Mixed Hex/Tet/Pyr meshes
Also adds example for mixed Hex/Tet/Pyr meshes in examples/mixedMesh3D
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)
Adds
form3DGrid
function under the newgridtools3d
module.examples/mixedMesh3D
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)