Skip to content

Commit

Permalink
fix: use correct fold frame coordinate
Browse files Browse the repository at this point in the history
  • Loading branch information
rabii-chaarani committed Jun 5, 2024
1 parent c2f143c commit 8ae8c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FoldOptLib/from_loopstructural/_fold.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_deformed_orientation(self, points):
gx = self.foldframe[CoordinateType.AXIAL_FOLIATION_FIELD].evaluate_scalar_value(
points
)
dgx = self.foldframe[CoordinateType.FOLD_AXIS_FIELD].evaluate_gradient(points)
dgx = self.foldframe[CoordinateType.AXIAL_FOLIATION_FIELD].evaluate_gradient(points)
mask = np.all(~np.isnan(dgx), axis=1)
dgx[mask, :] /= np.linalg.norm(dgx[mask, :], axis=1)[:, None]
dgz = np.zeros_like(dgx)
Expand Down

0 comments on commit 8ae8c6b

Please sign in to comment.