uxarray.grid.connectivity.close_face_nodes#
- uxarray.grid.connectivity.close_face_nodes(Mesh2_face_nodes, nMesh2_face, nMaxMesh2_face_nodes)#
Closes (
Mesh2_face_nodes
) by inserting the first node index after the last non-fill-value node.- Parameters:
Mesh2_face_nodes (np.ndarray) – Connectivity array for constructing a face from its nodes
nMesh2_face (constant) – Number of faces
nMaxMesh2_face_nodes (constant) – Max number of nodes that compose a face
- Returns:
closed – Closed (padded) Mesh2_face_nodes
- Return type:
ndarray
Example
- Given face nodes with shape [2 x 5]
[0, 1, 2, 3, FILL_VALUE] [4, 5, 6, 7, 8]
- Pads them to the following with shape [2 x 6]
[0, 1, 2, 3, 0, FILL_VALUE] [4, 5, 6, 7, 8, 4]