1 #ifndef GRASS_TRIANGLE_COLLECTOR_H
2 #define GRASS_TRIANGLE_COLLECTOR_H
4 #include <osg/TriangleFunctor>
26 void operator() (
const osg::Vec3 v1,
const osg::Vec3 v2,
const osg::Vec3 v3,
bool treatVertexDataAsTemporary);
29 static Mesh * GetMesh(
const Geode & geode,
const float maxGrassHeight);
31 Mesh * FinalizeAndReturn(
const float maxGrassHeight);
33 map<Vec3, unsigned int> verticesLookup;
34 vector<Vec3> vertices;
35 vector<unsigned int> triangles;
38 unsigned int AddVertex(
const Vec3 & v);
47 #endif // GRASS_TRIANGLE_COLLECTOR_H