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
Given a meshio.Mesh object and an array of cell block indices, this function creates a new mesh containing only the cells from the specified cell blocks and the points referenced by those cells. The point indices are remapped so that the resulting mesh is consistent and compact. Associated point and cell data are also filtered accordingly.
103
95
104
-
Parameters:
105
-
mesh: meshio.Mesh
106
-
The input mesh from which to extract cell blocks.
107
-
108
-
cellblock_ids: np.ndarray
109
-
An array of indices specifying which cell blocks to include in the output mesh.
96
+
Args:
97
+
mesh: The input mesh from which to extract cell blocks.
98
+
cellblock_ids: An array of indices specifying which cell blocks to include in the output mesh.
110
99
111
100
Returns:
112
-
meshio.Mesh: A new meshio.Mesh object containing only the specified cell blocks and their associated points and data.
101
+
A new meshio.Mesh object containing only the specified cell blocks and their associated points and data.
113
102
114
103
Notes:
115
104
- If cellblock_ids is empty, returns an empty mesh with no points or cells.
0 commit comments