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

[WIP] Static mesh support #45

Closed
wants to merge 6 commits into from

Conversation

phohenberger
Copy link
Contributor

Add option for meshes to be static, meaning they will only be loaded in once and not changed during the following frames. This significantly improves rendering time for a larger non-moving mesh.

Can be added to vis.Particle and vis.VectorField by simply giving them the static = True parameter.

Note that static objects only take in position in the shape of (n_part, n_dim)

@phohenberger
Copy link
Contributor Author

phohenberger commented Jun 4, 2024

Would address #3

Fixes a bug where if you initialize the static mesh first, the number of frames get set to 1
@phohenberger
Copy link
Contributor Author

Moved to new PR

Copy link
Member

@SamTov SamTov left a comment

Choose a reason for hiding this comment

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

I like the PR! I think there is a cleaner way of dealing with the meshes, namely having lists at the start of state and dynamic meshes, thereby removing any need to perform the logic check. However, this is a large restructure of the code that I would leave for a general cleanup PR.

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