ros-visualization/rviz — pull request #774 by hersh (2014-05-17 23:56:05+00:00)
Title: Triangle list marker shading

This pull request is really just phase 1 of this fix.

I noticed a while ago that some of the markers I sent to rviz had no shading, and I just realized the reason is I'm sending them as triangle-lists. When triangle-list markers were implemented, no one bothered to compute the normal vectors, so Ogre didn't know how to shade them. This pull request implements it correctly (in my opinion) but only for the case where there is only one color for the whole triangle-list marker. The marker also supports per-triangle and per-vertex colorizing, but I don't have time to port my fix to those cases right now.

I understand this is probably annoying, but I wanted to get this out there right away. I (or anyone with some time) can pretty easily fill this out to the other 2 cases.