Blender V5.0
BKE_pointcloud.hh File Reference

General operations for point clouds. More...

Go to the source code of this file.

Classes

struct  blender::bke::PointCloudRuntime

Namespaces

namespace  blender
namespace  blender::bke
namespace  blender::bke::bake

Enumerations

enum  { BKE_POINTCLOUD_BATCH_DIRTY_ALL = 0 }

Functions

PointCloudblender::bke::pointcloud_new_no_attributes (int totpoint)
PointCloudBKE_pointcloud_add (Main *bmain, const char *name)
PointCloudBKE_pointcloud_new_nomain (int totpoint)
void BKE_pointcloud_nomain_to_pointcloud (PointCloud *pointcloud_src, PointCloud *pointcloud_dst)
bool BKE_pointcloud_attribute_required (const PointCloud *pointcloud, blender::StringRef name)
void pointcloud_copy_parameters (const PointCloud &src, PointCloud &dst)
PointCloudBKE_pointcloud_copy_for_eval (const PointCloud *pointcloud_src)
void BKE_pointcloud_data_update (Depsgraph *depsgraph, Scene *scene, Object *object)
void BKE_pointcloud_batch_cache_dirty_tag (PointCloud *pointcloud, int mode)
void BKE_pointcloud_batch_cache_free (PointCloud *pointcloud)
const AttributeAccessorFunctionsblender::bke::pointcloud_attribute_accessor_functions ()

Variables

void(* BKE_pointcloud_batch_cache_dirty_tag_cb )(PointCloud *pointcloud, int mode)
void(* BKE_pointcloud_batch_cache_free_cb )(PointCloud *pointcloud)

Detailed Description

General operations for point clouds.

Definition in file BKE_pointcloud.hh.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
BKE_POINTCLOUD_BATCH_DIRTY_ALL 

Definition at line 73 of file BKE_pointcloud.hh.

Function Documentation

◆ BKE_pointcloud_add()

◆ BKE_pointcloud_attribute_required()

bool BKE_pointcloud_attribute_required ( const PointCloud * pointcloud,
blender::StringRef name )

Definition at line 321 of file pointcloud.cc.

References ATTR_POSITION, and name.

Referenced by BKE_attribute_required().

◆ BKE_pointcloud_batch_cache_dirty_tag()

void BKE_pointcloud_batch_cache_dirty_tag ( PointCloud * pointcloud,
int mode )

◆ BKE_pointcloud_batch_cache_free()

void BKE_pointcloud_batch_cache_free ( PointCloud * pointcloud)

Definition at line 446 of file pointcloud.cc.

References PointCloud::batch_cache, and BKE_pointcloud_batch_cache_free_cb.

Referenced by pointcloud_free_data().

◆ BKE_pointcloud_copy_for_eval()

◆ BKE_pointcloud_data_update()

◆ BKE_pointcloud_new_nomain()

◆ BKE_pointcloud_nomain_to_pointcloud()

◆ pointcloud_copy_parameters()

void pointcloud_copy_parameters ( const PointCloud & src,
PointCloud & dst )

Copy data from #src to #dst, except the geometry and attributes. Typically used to copy high-level parameters when a geometry-altering operation creates a new point cloud data-block.

Definition at line 327 of file pointcloud.cc.

References blender::MutableSpan< T >::copy_from(), PointCloud::flag, PointCloud::mat, MEM_malloc_arrayN(), MEM_SAFE_FREE, and PointCloud::totcol.

Referenced by blender::ed::pointcloud::copy_selection().

Variable Documentation

◆ BKE_pointcloud_batch_cache_dirty_tag_cb

void(* BKE_pointcloud_batch_cache_dirty_tag_cb) (PointCloud *pointcloud, int mode) ( PointCloud * pointcloud,
int mode )
extern

Definition at line 436 of file pointcloud.cc.

Referenced by BKE_pointcloud_batch_cache_dirty_tag(), and DRW_module_init().

◆ BKE_pointcloud_batch_cache_free_cb

void(* BKE_pointcloud_batch_cache_free_cb) (PointCloud *pointcloud) ( PointCloud * pointcloud)
extern

Definition at line 437 of file pointcloud.cc.

Referenced by BKE_pointcloud_batch_cache_free(), and DRW_module_init().