-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lorenz Reithmayr
committed
Jun 28, 2024
1 parent
6a4b0e0
commit 155e3d4
Showing
12 changed files
with
151 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef CANNOLI_SRC_BVH_H_ | ||
#define CANNOLI_SRC_BVH_H_ | ||
|
||
#include "aabb.h" | ||
|
||
namespace cannoli { | ||
class BVHNode { | ||
public: | ||
BVHNode(AABB &boundingBox, std::vector<int> &triangles); | ||
|
||
protected: | ||
AABB m_boundingBox; | ||
BVHNode *m_childA{nullptr}; | ||
BVHNode *m_childB{nullptr}; | ||
std::vector<int> m_associatedTriangleIndices; | ||
}; | ||
|
||
class BVH { | ||
public: | ||
BVH() = default; | ||
|
||
protected: | ||
std::vector<BVHNode> m_nodes; | ||
}; | ||
} // namespace cannoli | ||
#endif //CANNOLI_SRC_BVH_H_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.