|
opynsim
Unofficial C++ Documentation
|
#include <bvh.h>
Public Member Functions | |
| void | clear () |
| void | build_from_indexed_triangles (std::span< const Vector3 > vertices, std::span< const uint16_t > indices) |
| void | build_from_indexed_triangles (std::span< const Vector3 > vertices, std::span< const uint32_t > indices) |
| std::optional< BVHCollision > | closest_ray_indexed_triangle_collision (std::span< const Vector3 > vertices, std::span< const uint16_t > indices, const Ray &) const |
| std::optional< BVHCollision > | closest_ray_indexed_triangle_collision (std::span< const Vector3 > vertices, std::span< const uint32_t > indices, const Ray &) const |
| void | build_from_aabbs (std::span< const AABB >) |
| void | for_each_ray_aabb_collision (const Ray &, const std::function< void(BVHCollision)> &) const |
| bool | empty () const |
| size_t | max_depth () const |
| std::optional< AABB > | bounds () const |
| void | for_each_leaf_node (const std::function< void(const BVHNode &)> &) const |
| void | for_each_leaf_or_inner_node (const std::function< void(const BVHNode &)> &) const |
| std::optional< AABB > osc::BVH::bounds | ( | ) | const |
| void osc::BVH::build_from_indexed_triangles | ( | std::span< const Vector3 > | vertices, |
| std::span< const uint16_t > | indices | ||
| ) |
| void osc::BVH::build_from_indexed_triangles | ( | std::span< const Vector3 > | vertices, |
| std::span< const uint32_t > | indices | ||
| ) |
| void osc::BVH::clear | ( | ) |
| std::optional< BVHCollision > osc::BVH::closest_ray_indexed_triangle_collision | ( | std::span< const Vector3 > | vertices, |
| std::span< const uint16_t > | indices, | ||
| const Ray & | |||
| ) | const |
| std::optional< BVHCollision > osc::BVH::closest_ray_indexed_triangle_collision | ( | std::span< const Vector3 > | vertices, |
| std::span< const uint32_t > | indices, | ||
| const Ray & | |||
| ) | const |
| bool osc::BVH::empty | ( | ) | const |
| void osc::BVH::for_each_ray_aabb_collision | ( | const Ray & | , |
| const std::function< void(BVHCollision)> & | |||
| ) | const |
| size_t osc::BVH::max_depth | ( | ) | const |