Skip to content

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

@ndem0 ndem0 closed this Aug 29, 2025
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.

3 participants