| 62 | } |
| 63 | |
| 64 | unsigned int getConvexity(const std::vector<Primitive*>& batch) { |
| 65 | unsigned int convexity=1; |
| 66 | for (std::vector<Primitive*>::const_iterator itr = batch.begin(); itr != batch.end(); ++itr) { |
| 67 | unsigned int val = (*itr)->getConvexity(); |
| 68 | if (convexity < val) { |
| 69 | convexity = val; |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | return convexity; |
| 74 | } |
| 75 | } // namespace Algo |
| 76 | |
| 77 | namespace OpenGL { |
no test coverage detected