gustaf.utils.connec.tet_to_tri#
- gustaf.utils.connec.tet_to_tri(volumes)[source]#
Computes tri faces based on following index scheme.
Tetrahedron
Ref: (node_ind), face_ind (0) _/| _/ 1| (1) _/____| (3) _/| /| _/ 0| 2/ 3| /____|/____| (0) (2) (0) face_ind | node_ind ---------|---------- 0 | 0 2 1 1 | 1 3 0 2 | 2 3 1 3 | 3 2 0
- Parameters:
volumes ((n, 4) np.ndarray)
- Returns:
faces
- Return type:
(n * 4, 3) np.ndarray