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<float3> blender::bke::pbvh::Node::bounds_ = {}

Axis aligned min and max of all vertex positions in the node.

Definition at line 75 of file BKE_pbvh_api.hh.

Referenced by blender::bke::pbvh::pbvh_bmesh_node_finalize(), and blender::bke::pbvh::pbvh_bmesh_node_split().

◆ bounds_orig_

Bounds<float3> blender::bke::pbvh::Node::bounds_orig_ = {}

Bounds from the start of current brush stroke.

Definition at line 77 of file BKE_pbvh_api.hh.

Referenced by blender::bke::pbvh::pbvh_bmesh_node_finalize(), and blender::bke::pbvh::pbvh_bmesh_node_split().

◆ children_offset_

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

◆ 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.

◆ flag_

◆ pixels_

pixels::NodeData* blender::bke::pbvh::Node::pixels_ = nullptr
Todo
Move storage of image painting data to Tree or elsewhere.

Definition at line 101 of file BKE_pbvh_api.hh.

◆ 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 blender::bke::pbvh::node_tree_insert().


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