diff options
Diffstat (limited to 'extern/softbody/src/admmpd_bvh.h')
-rw-r--r-- | extern/softbody/src/admmpd_bvh.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extern/softbody/src/admmpd_bvh.h b/extern/softbody/src/admmpd_bvh.h index 647442bc4d7..2ad53d0fad8 100644 --- a/extern/softbody/src/admmpd_bvh.h +++ b/extern/softbody/src/admmpd_bvh.h @@ -61,6 +61,12 @@ public: } }; + // Return AABB of root + Eigen::AlignedBox<T,DIM> bounds() const { + if (m_root) { return m_root->aabb; } + return Eigen::AlignedBox<T,DIM>(); + } + // Return ptr to the root node // Becomes invalidated after init() std::shared_ptr<Node> root() { return m_root; } |