Module:
sdynpy.core.sdynpy_shapeSource: GitHub
Signature¶
def sdynpy.core.sdynpy_shape.shape_alignment(shape_1, shape_2, node_id_map=None)Computes if the shapes are aligned, or if one needs to be flipped
Parameters¶
shape_1 : ShapeArray Shape to compare.
shape_2 : ShapeArray Shape to compare.
Returns¶
np.ndarray
An array denoting if one of the shapes need to be flipped (-1)
to be equivalent to the other, or if they are already aligned (1)