Blender
V4.3
source
blender
blenkernel
BKE_pbvh.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
11
#include "
BLI_utildefines.h
"
12
13
struct
BMesh
;
14
15
namespace
blender::bke::pbvh
{
16
17
class
Node
;
18
class
Tree;
19
20
enum class
Type
{
21
Mesh
,
22
Grids
,
23
BMesh
,
24
};
25
26
}
// namespace blender::bke::pbvh
27
28
/* #PBVHNodeFlags is needed by `DRW_render.hh` and `draw_cache.cc`. */
29
enum
PBVHNodeFlags
{
30
PBVH_Leaf
= 1 << 0,
31
32
PBVH_UpdateRedraw
= 1 << 5,
33
34
PBVH_FullyHidden
= 1 << 10,
35
PBVH_FullyMasked
= 1 << 11,
36
PBVH_FullyUnmasked
= 1 << 12,
37
38
PBVH_UpdateTopology
= 1 << 13,
39
PBVH_RebuildPixels
= 1 << 15,
40
PBVH_TexLeaf
= 1 << 16,
42
PBVH_TopologyUpdated
= 1 << 17,
43
};
44
ENUM_OPERATORS
(
PBVHNodeFlags
,
PBVH_TopologyUpdated
);
45
46
void
BKE_pbvh_draw_debug_cb
(
blender::bke::pbvh::Tree
&pbvh,
47
void
(*draw_fn)(
blender::bke::pbvh::Node
*node,
48
void
*user_data,
49
const
float
bmin[3],
50
const
float
bmax[3],
51
PBVHNodeFlags
flag
),
52
void
*user_data);
BKE_pbvh_draw_debug_cb
void BKE_pbvh_draw_debug_cb(blender::bke::pbvh::Tree &pbvh, void(*draw_fn)(blender::bke::pbvh::Node *node, void *user_data, const float bmin[3], const float bmax[3], PBVHNodeFlags flag), void *user_data)
Definition
pbvh.cc:2368
PBVHNodeFlags
PBVHNodeFlags
Definition
BKE_pbvh.hh:29
PBVH_RebuildPixels
@ PBVH_RebuildPixels
Definition
BKE_pbvh.hh:39
PBVH_FullyMasked
@ PBVH_FullyMasked
Definition
BKE_pbvh.hh:35
PBVH_TopologyUpdated
@ PBVH_TopologyUpdated
Definition
BKE_pbvh.hh:42
PBVH_TexLeaf
@ PBVH_TexLeaf
Definition
BKE_pbvh.hh:40
PBVH_UpdateTopology
@ PBVH_UpdateTopology
Definition
BKE_pbvh.hh:38
PBVH_FullyHidden
@ PBVH_FullyHidden
Definition
BKE_pbvh.hh:34
PBVH_Leaf
@ PBVH_Leaf
Definition
BKE_pbvh.hh:30
PBVH_UpdateRedraw
@ PBVH_UpdateRedraw
Definition
BKE_pbvh.hh:32
PBVH_FullyUnmasked
@ PBVH_FullyUnmasked
Definition
BKE_pbvh.hh:36
BLI_utildefines.h
ENUM_OPERATORS
#define ENUM_OPERATORS(_type, _max)
Definition
BLI_utildefines.h:616
blender::bke::pbvh::Node
Definition
BKE_pbvh_api.hh:70
blender::bke::pbvh::Tree
Definition
BKE_pbvh_api.hh:207
blender::bke::pbvh
Definition
BKE_paint.hh:47
blender::bke::pbvh::Type
Type
Definition
BKE_pbvh.hh:20
blender::bke::pbvh::Type::Mesh
@ Mesh
blender::bke::pbvh::Type::BMesh
@ BMesh
blender::bke::pbvh::Type::Grids
@ Grids
BMesh
Definition
bmesh_class.hh:298
Node
Definition
graph/node.h:90
flag
uint8_t flag
Definition
wm_window.cc:138
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0