Blender V4.3
blender::bke::pbvh::Node Class Reference

#include <BKE_pbvh_api.hh>

Inherited by blender::bke::pbvh::BMeshNode, blender::bke::pbvh::GridsNode, and blender::bke::pbvh::MeshNode.

Public Attributes

Bounds< float3bounds_ = {}
Bounds< float3bounds_orig_ = {}
int children_offset_ = 0
PBVHNodeFlags flag_ = PBVH_UpdateRedraw
float tmin_ = 0.0f
int debug_draw_gen_ = 0
pixels::NodeDatapixels_ = nullptr

Detailed Description

Todo
Most data is public but should either be removed or become private in the future. The "_" suffix means that fields shouldn't be used by consumers of the bke::pbvh API.

Definition at line 70 of file BKE_pbvh_api.hh.

Member Data Documentation

◆ bounds_

◆ bounds_orig_

◆ children_offset_

◆ debug_draw_gen_

int blender::bke::pbvh::Node::debug_draw_gen_ = 0

Used to flash colors of updated node bounding boxes in debug draw mode (when G.debug_value / bpy.app.debug_value is 889).

Todo
Remove and store elsewhere.

Definition at line 98 of file BKE_pbvh_api.hh.

Referenced by BKE_pbvh_debug_draw_gen_get().

◆ flag_

PBVHNodeFlags blender::bke::pbvh::Node::flag_ = PBVH_UpdateRedraw

◆ pixels_

◆ tmin_

float blender::bke::pbvh::Node::tmin_ = 0.0f

Used for ray-casting: how close the bounding-box is to the ray point.

Todo
Remove and store elsewhere.

Definition at line 91 of file BKE_pbvh_api.hh.

Referenced by BKE_pbvh_node_get_tmin(), blender::bke::pbvh::nearest_to_ray_aabb_dist_sq(), blender::bke::pbvh::node_tree_insert(), and blender::bke::pbvh::ray_aabb_intersect().


The documentation for this class was generated from the following file: