Encapsulate BVH class members.

PiperOrigin-RevId: 662141171
Change-Id: Ica202d31dacc9cc500d0aeecded941b79002b9a1
This commit is contained in:
Kyle Bayes
2024-08-12 10:25:52 -07:00
committed by Copybara-Service
parent 648fd56ed1
commit 20cae556ee
4 changed files with 64 additions and 59 deletions
+1 -1
View File
@@ -567,7 +567,7 @@ void mjCMesh::Compile(const mjVFS* vfs) {
}
// make bounding volume hierarchy
if (tree_.bvh.empty()) {
if (tree_.Bvh().empty()) {
face_aabb_.assign(6*nface(), 0);
tree_.AllocateBoundingVolumes(nface());
for (int i=0; i < nface(); i++) {