source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.h @ 3260

Revision 3260, 526 bytes checked in by mattausch, 15 years ago (diff)
Line 
1#ifndef __BVHEXPORTER_H
2#define __BVHEXPORTER_H
3
4#include "common.h"
5#include "Bvh.h"
6#include <map>
7
8
9namespace CHCDemoEngine
10{
11
12/** Class for exporting bvh to Jiris format
13*/
14class BvhExporter
15{
16public:
17
18        bool Export(const std::string &filename, Bvh *bvh);
19
20
21protected:
22
23        void ConstructTriangleRangeMap(Bvh *bvh, BvhNode *node, int &first, int &last);
24
25        void SaveNode(BvhNode *node, FILE *fw);
26
27
28        //////////////
29
30        std::map<BvhNode *, std::pair<int, int> > mTriangleRangeMap;
31};
32
33
34}
35
36#endif
Note: See TracBrowser for help on using the repository browser.