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

Precompute the Quaternions #64

Merged

Conversation

vxel
Copy link

@vxel vxel commented Oct 30, 2021

This is an optimization proposition.
Quaternions are heavily used during mesh generation and are costly to create and to compute.
This PR uses pre-computed quaternions for the most used operations.

Warning : this somewhat breaks the backward compatibility since the same Quaternion objects are used, requiring shapes to clone them when needed (and not using e.g. xxxLocal() operations ! See impact on existing shapes.
If unacceptable, we will need to clone() each quaternion returned.

@rvandoosselaer rvandoosselaer merged commit b13b85a into rvandoosselaer:master Jan 4, 2022
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.

None yet

2 participants