How to remove duplicate vertices for GLModel rendering? Hash Tables? Welding?
in
Contributed Library Questions
•
2 years ago
I have an always changing 2D mesh that needs to be clear and recalculated on every frame, so far I got that bit working fine, but at the moment there are lots of duplicate vertices, so if I need to pump up the number of vertices the framerate obviously drops. To make this work more efficiently I need to get rid off the duplicate vertices some how, no idea how to do that …
I google around and found this post, http://www.devmaster.net/forums/showthread.php?t=8066 were they mention hash tables, so I wonder if any of you has implement this data structure in P5 or Java, or event better can GLGraphics or GLModel clean duplicate vertices some how?
Any help will be much appreciated!
- rS
2