Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPDATED FFD.PY FILE WITH ROTATION MATRIX AS INPUT #262

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JJab0n
Copy link

@JJab0n JJab0n commented Nov 4, 2022

This new file allows the user to directly introduce the rotation matrix as input. The attribute rot_mode is created in order to create the rotation matrix through rotation angles (0-value) or to directly introduce the matrix (1-value).

This option was created to avoid the issue that arises when Euler angles are calculated from the rotation matrix (there is not a single solution). Thereby, the user can directly work with the rotation matrix.

This new file allows the user to directly introduce the rotation matrix as input. The attribute rot_mode is created in order to create the rotation matrix through rotation angles (0-value) or to directly introduce the matrix (1-value)
@mtezzele
Copy link
Collaborator

mtezzele commented Nov 8, 2022

Hi @JJab0n could you please provide some tests for this contribution?

@@ -93,7 +93,9 @@ def __init__(self, n_control_points=None):

self.box_length = np.array([1., 1., 1.])
self.box_origin = np.array([0., 0., 0.])
self.rot_mode = 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a documentation for the two new members

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants