Blender V5.0
BKE_bvhutils.hh File Reference

Go to the source code of this file.

Classes

struct  blender::bke::BVHTreeFromMesh
struct  blender::bke::BVHTreeFromPointCloud

Namespaces

namespace  blender
namespace  blender::bke

Functions

BVHTreeFromMesh blender::bke::bvhtree_from_mesh_tris_init (const Mesh &mesh, const IndexMask &faces_mask)
BVHTreeFromMesh blender::bke::bvhtree_from_mesh_edges_init (const Mesh &mesh, const IndexMask &edges_mask)
BVHTreeFromMesh blender::bke::bvhtree_from_mesh_verts_init (const Mesh &mesh, const IndexMask &verts_mask)
Common Utils
BVHTreeFromMesh blender::bke::bvhtree_from_mesh_verts_ex (Span< float3 > vert_positions, const IndexMask &verts_mask)
BVHTreeFromMesh blender::bke::bvhtree_from_mesh_edges_ex (Span< float3 > vert_positions, Span< int2 > edges, const IndexMask &edges_mask)
BVHTreeFromMesh blender::bke::bvhtree_from_mesh_corner_tris_ex (Span< float3 > vert_positions, OffsetIndices< int > faces, Span< int > corner_verts, Span< int3 > corner_tris, const IndexMask &faces_mask)
Local Callbacks
float blender::bke::bvhtree_ray_tri_intersection (const BVHTreeRay *ray, float m_dist, const float v0[3], const float v1[3], const float v2[3])
float blender::bke::bvhtree_sphereray_tri_intersection (const BVHTreeRay *ray, float radius, float m_dist, const float v0[3], const float v1[3], const float v2[3])
Point Cloud BVH Building
BVHTreeFromPointCloud blender::bke::bvhtree_from_pointcloud_get (const PointCloud &pointcloud, const IndexMask &points_mask)

Detailed Description

This header encapsulates necessary code to build a BVH.

Definition in file BKE_bvhutils.hh.