Blender V5.3
BKE_pointcloud.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
12#include "MEM_guardedalloc.h" /* For `MEM_CXX_CLASS_ALLOC_FUNCS`. */
13
14#include "BLI_bounds_types.hh"
16#include "BLI_shared_cache.hh"
17#include "BLI_string_ref.hh"
18
19#include "BKE_bvh.hh"
20
22
23namespace blender {
24
25struct Depsgraph;
26struct Main;
27struct Object;
28struct PointCloud;
29struct Scene;
30namespace bke::bake {
32}
33
34namespace bke {
35
52
54
55} // namespace bke
56
57PointCloud *BKE_pointcloud_add(Main *bmain, const char *name);
59void BKE_pointcloud_nomain_to_pointcloud(PointCloud *pointcloud_src, PointCloud *pointcloud_dst);
60
61bool BKE_pointcloud_attribute_required(const PointCloud *pointcloud, StringRef name);
62
64 const unsigned int *remap,
65 int remap_num);
66
73
74void pointcloud_resize(PointCloud &pointcloud, int size);
75
76/* Dependency Graph */
77
79
80void BKE_pointcloud_data_update(Depsgraph *depsgraph, Scene *scene, Object *object);
81
82/* Draw Cache */
83
84enum {
86};
87
88void BKE_pointcloud_batch_cache_dirty_tag(PointCloud *pointcloud, int mode);
90
91extern void (*BKE_pointcloud_batch_cache_dirty_tag_cb)(PointCloud *pointcloud, int mode);
92extern void (*BKE_pointcloud_batch_cache_free_cb)(PointCloud *pointcloud);
93extern void (*BKE_gsplat_batch_cache_dirty_tag_cb)(PointCloud *pointcloud, int mode);
94extern void (*BKE_gsplat_batch_cache_free_cb)(PointCloud *pointcloud);
95
96namespace bke {
97struct AttributeAccessorFunctions;
98const AttributeAccessorFunctions &pointcloud_attribute_accessor_functions();
99} // namespace bke
100} // namespace blender
Read Blender memory allocation and freeing.
PointCloud * pointcloud_new_no_attributes(PointCloudType type, int totpoint)
const AttributeAccessorFunctions & pointcloud_attribute_accessor_functions()
BMesh Iterators.
PointCloud * BKE_pointcloud_copy_for_eval(const PointCloud *pointcloud_src)
@ BKE_POINTCLOUD_BATCH_DIRTY_ALL
void BKE_pointcloud_nomain_to_pointcloud(PointCloud *pointcloud_src, PointCloud *pointcloud_dst)
void BKE_pointcloud_material_remap(PointCloud *pointcloud, const unsigned int *remap, int remap_num)
void BKE_pointcloud_batch_cache_dirty_tag(PointCloud *pointcloud, int mode)
void(*) BKE_pointcloud_batch_cache_dirty_tag_cb(PointCloud *pointcloud, int mode)
void(*) BKE_pointcloud_batch_cache_free_cb(PointCloud *pointcloud)
PointCloud * BKE_pointcloud_add(Main *bmain, const char *name)
void pointcloud_copy_parameters(const PointCloud &src, PointCloud &dst)
void BKE_pointcloud_batch_cache_free(PointCloud *pointcloud)
void pointcloud_resize(PointCloud &pointcloud, int size)
PointCloud * BKE_pointcloud_new_nomain(PointCloudType type, int totpoint)
void(*) BKE_gsplat_batch_cache_free_cb(PointCloud *pointcloud)
void BKE_pointcloud_data_update(Depsgraph *depsgraph, Scene *scene, Object *object)
void(*) BKE_gsplat_batch_cache_dirty_tag_cb(PointCloud *pointcloud, int mode)
bool BKE_pointcloud_attribute_required(const PointCloud *pointcloud, StringRef name)
SharedCache< Bounds< float3 > > bounds_with_radius_cache
SharedCache< bke::bvh::Tree > bvh_cache
MEM_CXX_CLASS_ALLOC_FUNCS("PointCloudRuntime")
std::unique_ptr< bake::BakeMaterialsList > bake_materials
SharedCache< Bounds< float3 > > bounds_cache