-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBVH2.h
40 lines (31 loc) · 869 Bytes
/
BVH2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include "BVHNode.h"
#include "Platform.h"
#include "Mesh.h"
namespace FW
{
class BVH2
{
public:
//BVH2(void);
BVH2 (Mesh* mesh = NULL);
~BVH2(void);
void setMesh(Mesh* mesh);
void clear ();
Mesh* getScene (void) const { return m_scene; }
const Platform&
getPlatform1
(void)
const
{ return m_platform; }
BVHNode* getRoot (void) const { return m_root; }
vector<S32>& getTriIndices (void) { return m_triIndices; }
const vector<S32>& getTriIndices (void) const { return m_triIndices; }
//private:
public:
Mesh* m_scene;
Platform m_platform;
BVHNode* m_root;
vector<S32> m_triIndices;
};
}