Blender V5.3
blender::bke::bvh Namespace Reference

Classes

struct  ClosestPointResult
struct  MeshFallbackTree
struct  Ray
struct  RayHit
class  Tree

Functions

static BVHTreeFromMesh * fallback_mesh_data (const Tree::FallbackTree &fallback_tree)

Detailed Description

Note
Embree recommends enabling flush-to-zero and denormals-are-zero. That is done for all threads in BLI_task_scheduler_init.

Function Documentation

◆ fallback_mesh_data()

BVHTreeFromMesh * blender::bke::bvh::fallback_mesh_data ( const Tree::FallbackTree & fallback_tree)
static

The BVH callbacks take a mutable void * user-data pointer even though they only read from it. The tree data is logically const here, so casting away const is safe.

Definition at line 317 of file bvh.cc.

References blender::bke::bvh::MeshFallbackTree::bvh_from_mesh, and fallback_mesh_data().

Referenced by blender::bke::bvh::Tree::closest_point(), fallback_mesh_data(), blender::bke::bvh::Tree::range_query(), blender::bke::bvh::Tree::ray_intersect(), and blender::bke::bvh::Tree::ray_intersect_all().