Line | |
---|
1 | #ifndef __BVHEXPORTER_H
|
---|
2 | #define __BVHEXPORTER_H
|
---|
3 |
|
---|
4 | #include "common.h"
|
---|
5 | #include "Bvh.h"
|
---|
6 | #include <map>
|
---|
7 |
|
---|
8 |
|
---|
9 | namespace CHCDemoEngine
|
---|
10 | {
|
---|
11 |
|
---|
12 | /** Class for exporting bvh to Jiris format
|
---|
13 | */
|
---|
14 | class BvhExporter
|
---|
15 | {
|
---|
16 | public:
|
---|
17 |
|
---|
18 | bool Export(const std::string &filename, Bvh *bvh);
|
---|
19 |
|
---|
20 |
|
---|
21 | protected:
|
---|
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.