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

Add rotation support for custom plane #367

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

Conversation

MaticDiba
Copy link

This pull request introduces enhancements to the GUI controls for plane manipulation. Specifically, it adds support for dynamic rotations around the local axes of the plane. The following changes were made:

Summary of Changes:

  1. New Parameters:
    Added tx, ty, and tz to the parameters.cp object to control rotations around the plane's local axes (x, y, and z).

  2. New Rotation Functionality:
    Implemented a new updatePlaneRotation function using quaternions to ensure the rotations are applied relative to the plane's current orientation. This ensures the following behaviors:
    tx (Pitch): Rotates the plane around its local x-axis.
    ty (Roll): Rotates the plane around its local y-axis.
    tz (Yaw): Rotates the plane around its local z-axis.

  3. Updated Controls:
    Added GUI controls for:
    tx: Pitch (rotation around local x-axis).
    ty: Roll (rotation around local y-axis).
    tz: Yaw (rotation around local z-axis).

Motivation:
This feature enhances the user experience, which is especially useful for applications involving 3D data visualization or modeling.

Any comment/ideas welcom

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.

1 participant