![]() |
Dandelion 1.1.2
A light-weight 3D builder for educational usage
|
#include <limits>#include <array>#include <Eigen/Core>#include <spdlog/spdlog.h>#include "ray.h"类 | |
| class | AABB |
| BVH中的Aligned-axis bounding box 更多... | |
函数 | |
| AABB | union_AABB (const AABB &b1, const AABB &b2) |
| AABB | union_AABB (const AABB &b, const Eigen::Vector3f &p) |
| AABB | get_aabb (const GL::Mesh &mesh, size_t face_idx) |
| BVH加速求交的函数调用接口 | |
BVH加速求交的函数调用接口
| mesh | 当前AABB所在的mesh |
| face_idx | 当前的面片所对应的index |
将一个AABB和一个点融合,融合之后的AABB的p_min各维度取二者最小值,p_max各维度取二者最大值,返回融合之后的AABB