Skip to content

Commit 3d4d90f

Browse files
committed
fix: remove fold rotation inversion when axis and cross product are not in the same direction.
1 parent 6d238aa commit 3d4d90f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LoopStructural/modelling/features/fold/_foldframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def calculate_fold_limb_rotation(self, feature_builder, axis=None):
166166
ds = np.einsum("ij,ij->i", fold_axis, vv)
167167
flr = np.rad2deg(np.arcsin(r2)) # np.where(ds > 0, np.rad2deg(np.arcsin(r2)),
168168
# (- )))
169-
flr[ds < 0] *= -1
169+
# flr[ds < 0] *= -1
170170

171171
# flr = np.where(flr < -90, (180. + flr), flr)
172172
# flr = np.where(flr > 90, -(180. - flr), flr)

0 commit comments

Comments
 (0)