resqpy.olio.grid_functions.triangles_for_cell_faces¶
- resqpy.olio.grid_functions.triangles_for_cell_faces(cp)[source]¶
Returns numpy array of shape (3, 2, 4, 3, 3) with axes being kji, -+, triangle within face, triangle corner, xyz.
- Parameters
cp (numpy float array of shape (2, 2, 2, 3)) – single cell corner point array in pagoda protocol
- Returns
numpy float array of shape (3, 2, 4, 3, 3) holding triangle corner coordinates for cell faces represented with quad triangles
Note
resqpy.surface also contains methods for working with cell faces as triangulated sets