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

TriMesh avoid memory duplication #90

Closed
luiswirth opened this issue Aug 30, 2022 · 1 comment
Closed

TriMesh avoid memory duplication #90

luiswirth opened this issue Aug 30, 2022 · 1 comment

Comments

@luiswirth
Copy link

The current implementation of TriMesh forces me to have two copies of my vertex buffer, because I have a custom Vertex type that
has additional data associated with it and TriMesh only stores points as vertices.

The simplest solution that comes to my mind, would be to allow a generic parameter for the specific vertex type together with a Vertex trait which provides one method, which is get_point.

What do you think?

@luiswirth
Copy link
Author

I no longer store the other copy of my vertex buffers on the cpu anymore. Therefore I don't care about this issue anymore.

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

No branches or pull requests

1 participant