MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / IsLeaf

Method IsLeaf

TombEngine/Specific/Structures/BoundingVolumeHierarchy.cpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace TEN::Structures
9{
10 bool BoundingVolumeHierarchy::Node::IsLeaf() const
11 {
12 return (LeftChildId == NO_VALUE && RightChildId == NO_VALUE);
13 }
14
15 BoundingVolumeHierarchy::BoundingVolumeHierarchy(const std::vector<int>& objectIds, const std::vector<BoundingBox>& aabbs, BvhBuildStrategy strategy)
16 {

Callers 5

GetBoundedObjectIdsMethod · 0.80
GetBestSiblingLeafIdMethod · 0.80
RemoveNodeMethod · 0.80
BalanceNodeMethod · 0.80
ValidateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected