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

Method Validate

TombEngine/Specific/Structures/BoundingVolumeHierarchy.cpp:746–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744 }
745
746 void BoundingVolumeHierarchy::Validate() const
747 {
748 Validate(_rootId);
749
750 // Validate unique object IDs.
751 auto objectIds = GetBoundedObjectIds();
752 for (int refObjectId : objectIds)
753 {
754 unsigned int count = 0;
755 for (int objectId : objectIds)
756 {
757 if (refObjectId == objectId)
758 count++;
759 }
760
761 TENAssert(count == 1, "BVH: Duplicate object IDs contained.");
762 }
763 }
764
765 void BoundingVolumeHierarchy::Validate(int nodeId) const
766 {

Callers

nothing calls this directly

Calls 2

TENAssertFunction · 0.85
IsLeafMethod · 0.80

Tested by

no test coverage detected