Original Post
Hello everyone I recently needed a mesh optimizer for my engine, so I found this alhorithm described at: http://home.comcast.net/%7Etom_forsyth/papers/fast_vert_cache_opt.html I implemented the algorithm with some good results. The source can be downloaded at: http://code.google.com/p/vcacne/ My implementation consists of a single header file which -at least in theory- will work with any C++ compiler, though only tested with visual studio. Its usage is really simple - you can optimize meshes with just one function call. The running time on my CPU is 143 nanoseconds per triangle, for all test cases (tesselated planes from 10000 to 1 million triangles), while the resulting ACMR is close to 0.6 (vertex misses per triangle) as opposed to 1.0 when the plane is first generated. The archive also contains source for a test-benchmark program. I would really appreciate any kind of feedback. It would be nice if any of you could test the code under a different compiler or a different input data set. Thanks