|
Blender V4.5
|
#include <BKE_paint_bvh.hh>
Inherits blender::NonCopyable.
Inherited by blender::bke::pbvh::BMeshNode, blender::bke::pbvh::GridsNode, and blender::bke::pbvh::MeshNode.
Public Types | |
| enum | Flags : uint32_t { None = 0 , Leaf = 1 << 0 , FullyHidden = 1 << 10 , FullyMasked = 1 << 11 , FullyUnmasked = 1 << 12 , UpdateTopology = 1 << 13 , RebuildPixels = 1 << 15 , TexLeaf = 1 << 16 , TopologyUpdated = 1 << 17 } |
Public Member Functions | |
| std::optional< int > | parent () const |
| const Bounds< float3 > & | bounds () const |
| const Bounds< float3 > & | bounds_orig () const |
Public Attributes | |
| int | parent_ = -1 |
| Bounds< float3 > | bounds_ = {} |
| Bounds< float3 > | bounds_orig_ = {} |
| int | children_offset_ = 0 |
| Flags | flag_ = None |
| float | tmin_ = 0.0f |
| int | debug_draw_gen_ = 0 |
| pixels::NodeData * | pixels_ = nullptr |
bke::pbvh API. Definition at line 61 of file BKE_paint_bvh.hh.
| Enumerator | |
|---|---|
| None | |
| Leaf | |
| FullyHidden | |
| FullyMasked | |
| FullyUnmasked | |
| UpdateTopology | |
| RebuildPixels | |
| TexLeaf | |
| TopologyUpdated | Used internally by |
Definition at line 65 of file BKE_paint_bvh.hh.
Definition at line 623 of file BKE_paint_bvh.hh.
References bounds_.
Referenced by blender::bke::pbvh::clip_ray_ortho().
Definition at line 628 of file BKE_paint_bvh.hh.
References bounds_orig_.
Referenced by blender::bke::pbvh::clip_ray_ortho().
|
inline |
Definition at line 614 of file BKE_paint_bvh.hh.
References parent_.
Axis aligned min and max of all vertex positions in the node.
Definition at line 84 of file BKE_paint_bvh.hh.
Referenced by bounds(), and blender::bke::pbvh::pbvh_bmesh_node_finalize().
Bounds from the start of current brush stroke.
Definition at line 86 of file BKE_paint_bvh.hh.
Referenced by bounds_orig(), and blender::bke::pbvh::pbvh_bmesh_node_finalize().
| int blender::bke::pbvh::Node::children_offset_ = 0 |
Definition at line 90 of file BKE_paint_bvh.hh.
| 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).
Definition at line 107 of file BKE_paint_bvh.hh.
Definition at line 94 of file BKE_paint_bvh.hh.
Referenced by BKE_pbvh_bmesh_after_stroke(), blender::bke::pbvh::bmesh_update_topology(), blender::bke::pbvh::pbvh_bmesh_face_remove(), blender::bke::pbvh::pbvh_bmesh_node_split(), blender::bke::pbvh::pbvh_bmesh_vert_ownership_transfer(), and blender::bke::pbvh::pbvh_bmesh_vert_remove().
| int blender::bke::pbvh::Node::parent_ = -1 |
Definition at line 81 of file BKE_paint_bvh.hh.
Referenced by parent(), and blender::bke::pbvh::pbvh_bmesh_node_split().
| pixels::NodeData* blender::bke::pbvh::Node::pixels_ = nullptr |
Definition at line 110 of file BKE_paint_bvh.hh.
| float blender::bke::pbvh::Node::tmin_ = 0.0f |
Used for ray-casting: how close the bounding-box is to the ray point.
Definition at line 100 of file BKE_paint_bvh.hh.
Referenced by blender::bke::pbvh::node_tree_insert().