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.
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 andTriMesh
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 isget_point
.What do you think?