pysdic.Mesh.keep_vertices_by_index#
- Mesh.keep_vertices_by_index(indices, *, propagate_properties=True)[source]#
Keep only the vertices with the given indices (in their original order).
The elements using a removed vertex are removed too, and the indices of the remaining elements are renumbered.
- Parameters:
indices (Union[Integral, ArrayLike]) – An index or an integer array of shape \((R,)\) with indices in \([0, N_v)\).
propagate_properties (bool, optional (default:
True)) – If False, the new mesh has no vertex and element properties.
- Returns:
The mesh with the selected vertices.
- Return type: