You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tetrahedralize splits a grid with hidden or refined cells differently (6 tetrahedra a hexahedron, not 5) #403
tetrahedralize of a structured grid splits each hexahedron into 5 tetrahedra, alternating by the box's offset parity (_refine.py, _parity_tets). With any hidden or refined cell it first calls visible(), which extracts the other cells into unstructured hexahedra. Those are then split into 6 (_cone_tets): different diagonals, 20% more tetrahedra, and the parity ignored.
g=td.uniform_grid((5, 5, 5))
td.tetrahedralize(g).num_cells# 320: 5 per hexahedronmarks=np.zeros(g.num_cells, np.uint8); marks[0] =td.Ghosts.REFINEDCELLg.ghosts=td.Ghosts(cells=tack.array(marks, tack.u8))
td.tetrahedralize(g).num_cells# 378: 6 per hexahedron, from 63
So an AMR hierarchy's boxes (everything below the finest level has refined cells) are split one way and its finest boxes another. Neighbouring boxes no longer split their shared faces alike. The output also depends on whether a box happens to have a masked cell.
Proposal. Leave masked cells out in place: give them no pieces in the count pass, and keep the structured 5-way split. The other algorithms that already compact masked cells do this through ghosts.without_hidden in _keep_cells.
Found while surveying ghost-driven slow paths for #316 (#401).
Activity
tetrahedralize and integrate leave masked cells out in place
Merge pull request Kitware#407 from berkgeveci/vis/ghost-splits