1#ifndef DANDELION_UTILS_AABB_H
2#define DANDELION_UTILS_AABB_H
8#include <spdlog/spdlog.h>
30 AABB(
const Eigen::Vector3f& p) :
p_min(p), p_max(p) {}
32 AABB(
const Eigen::Vector3f& p1,
const Eigen::Vector3f& p2);
58 intersect(
const Ray& ray,
const Eigen::Vector3f& inv_dir,
const std::array<int, 3>& dir_is_neg);
AABB get_aabb(const GL::Mesh &mesh, size_t face_idx)
BVH加速求交的函数调用接口
定义 aabb.cpp:65
AABB union_AABB(const AABB &b1, const AABB &b2)
定义 aabb.cpp:76
BVH中的Aligned-axis bounding box
定义 aabb.h:22
int max_extent() const
定义 aabb.cpp:30
bool intersect(const Ray &ray, const Eigen::Vector3f &inv_dir, const std::array< int, 3 > &dir_is_neg)
BVH加速求交的函数调用接口
定义 aabb.cpp:48
Eigen::Vector3f p_min
定义 aabb.h:26
Eigen::Vector3f diagonal() const
定义 aabb.cpp:24
Eigen::Vector3f centroid()
定义 aabb.cpp:42
用于场景预览渲染的 Mesh 类。
定义 gl.hpp:268