to3DHatchArray

pyslm.hatching.to3DHatchArray(hatchVectors)

Utility to reshape a flat 2D hatch vector array into a 3D array to allow manipulation of individual vectors

Parameters:

hatchVectors (ndarray) – Numpy Array of Hatch Coordinates of shape (2n, 2) where n is the number of of individual hatch vectors

Return type:

ndarray

Returns:

A view of the hatch vector formatted as 3D array of shape (n,2,2)