Finite Element Analysis Toolbox
REORIENT_CELLS Reorient cells to corrent orientation.
[ GRID ] = REORIENT_CELLS( GRID, DO_ALL, DO_CLEANUP, I_CHECK ) Reorient cells to correct orientation. DO_ALL toggles all permutations while otherwise it is assumed cells are not inverted or othewise have incorrect shapes. DO_CLEANUP indicates if grid cleanup and repair should be attempted. I_CHECK is a flag to choose check/ test type (1 = test Jacobian determinant (default), 2 = test if polygon points are in clockwise order, 3 = split hexahedra into six tetrahedra).