from3DHatchArray
- pyslm.hatching.from3DHatchArray(hatchVectors)
Utility to reshape a 3D hatch vector array of shape (n,2,2) into a flat 2D array to allow manipulation of individual vectors.
- Parameters:
hatchVectors (
ndarray
) – Numpy Array of Hatch Coordinates of shape (n, 2, 2) where n is the number of individual hatch vectors- Return type:
ndarray
- Returns:
A view of the hatch vector formatted as 2D array of shape (2n, 2)