Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_pbvh.h
| Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | typedef enum { | ||||
| PBVH_FullyHidden = 1 << 10, | PBVH_FullyHidden = 1 << 10, | ||||
| PBVH_FullyMasked = 1 << 11, | PBVH_FullyMasked = 1 << 11, | ||||
| PBVH_FullyUnmasked = 1 << 12, | PBVH_FullyUnmasked = 1 << 12, | ||||
| PBVH_UpdateTopology = 1 << 13, | PBVH_UpdateTopology = 1 << 13, | ||||
| PBVH_UpdateColor = 1 << 14, | PBVH_UpdateColor = 1 << 14, | ||||
| PBVH_RebuildPixels = 1 << 15, | PBVH_RebuildPixels = 1 << 15, | ||||
| PBVH_TopologyUpdated = 1 << 16, /* Used internally by pbvh_bmesh.c */ | PBVH_TopologyUpdated = 1 << 16, /* Used internally by pbvh_bmesh.c */ | ||||
| PBVH_RebuildAutomasking = 1 << 17, | |||||
| } PBVHNodeFlags; | } PBVHNodeFlags; | ||||
| typedef struct PBVHFrustumPlanes { | typedef struct PBVHFrustumPlanes { | ||||
| float (*planes)[4]; | float (*planes)[4]; | ||||
| int num_planes; | int num_planes; | ||||
| } PBVHFrustumPlanes; | } PBVHFrustumPlanes; | ||||
| BLI_INLINE PBVHType BKE_pbvh_type(const PBVH *pbvh) | BLI_INLINE PBVHType BKE_pbvh_type(const PBVH *pbvh) | ||||
| ▲ Show 20 Lines • Show All 426 Lines • ▼ Show 20 Lines | typedef struct PBVHVertexIter { | ||||
| BLI_bitmap **grid_hidden, *gh; | BLI_bitmap **grid_hidden, *gh; | ||||
| int *grid_indices; | int *grid_indices; | ||||
| int totgrid; | int totgrid; | ||||
| int gridsize; | int gridsize; | ||||
| /* mesh */ | /* mesh */ | ||||
| float (*vert_positions)[3]; | float (*vert_positions)[3]; | ||||
| float (*vert_normals)[3]; | float (*vert_normals)[3]; | ||||
| const bool *hide_vert; | const bool *hide_vert; | ||||
| int totvert; | int totvert; | ||||
| int unique_vert_len; | |||||
jbakker: better to put them on separate lines for clarety.
According to code style `unique_vert_len`… | |||||
| const int *vert_indices; | const int *vert_indices; | ||||
| float *vmask; | float *vmask; | ||||
| bool is_mesh; | bool is_mesh; | ||||
| /* bmesh */ | /* bmesh */ | ||||
| struct GSetIterator bm_unique_verts; | struct GSetIterator bm_unique_verts; | ||||
| struct GSetIterator bm_other_verts; | struct GSetIterator bm_other_verts; | ||||
| struct CustomData *bm_vdata; | struct CustomData *bm_vdata; | ||||
| ▲ Show 20 Lines • Show All 211 Lines • ▼ Show 20 Lines | |||||
| void BKE_pbvh_vertex_color_set(PBVH *pbvh, PBVHVertRef vertex, const float color[4]); | void BKE_pbvh_vertex_color_set(PBVH *pbvh, PBVHVertRef vertex, const float color[4]); | ||||
| void BKE_pbvh_vertex_color_get(const PBVH *pbvh, PBVHVertRef vertex, float r_color[4]); | void BKE_pbvh_vertex_color_get(const PBVH *pbvh, PBVHVertRef vertex, float r_color[4]); | ||||
| void BKE_pbvh_ensure_node_loops(PBVH *pbvh); | void BKE_pbvh_ensure_node_loops(PBVH *pbvh); | ||||
| bool BKE_pbvh_draw_cache_invalid(const PBVH *pbvh); | bool BKE_pbvh_draw_cache_invalid(const PBVH *pbvh); | ||||
| int BKE_pbvh_debug_draw_gen_get(PBVHNode *node); | int BKE_pbvh_debug_draw_gen_get(PBVHNode *node); | ||||
| void BKE_pbvh_node_automasking_mark(PBVH *pbvh, PBVHNode *node); | |||||
| void BKE_pbvh_node_automasking_unmark(PBVH *pbvh, PBVHNode *node); | |||||
| bool BKE_pbvh_node_needs_automasking(PBVH *pbvh, PBVHNode *node); | |||||
| void BKE_pbvh_node_automasking_mark_all(PBVH *pbvh); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
Done Inline ActionsJust a reminder that this should be removed before committing. jbakker: Just a reminder that this should be removed before committing. | |||||
| } | } | ||||
| #endif | #endif | ||||
better to put them on separate lines for clarety.
According to code style unique_vert_len would be more appropriate. unique_verts doesn't contain the verts.