TriMesh avoid memory duplication
luiswirth opened this issue · 1 comments
luiswirth commented
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 commented
I no longer store the other copy of my vertex buffers on the cpu anymore. Therefore I don't care about this issue anymore.