Blender  V3.3
Enumerations | Functions | Variables
BKE_pointcloud.h File Reference

General operations for point clouds. More...

Go to the source code of this file.

Enumerations

enum  { BKE_POINTCLOUD_BATCH_DIRTY_ALL = 0 }
 

Functions

voidBKE_pointcloud_add (struct Main *bmain, const char *name)
 
voidBKE_pointcloud_add_default (struct Main *bmain, const char *name)
 
struct PointCloudBKE_pointcloud_new_nomain (int totpoint)
 
struct BoundBoxBKE_pointcloud_boundbox_get (struct Object *ob)
 
bool BKE_pointcloud_minmax (const struct PointCloud *pointcloud, float r_min[3], float r_max[3])
 
bool BKE_pointcloud_customdata_required (const struct PointCloud *pointcloud, const char *name)
 
struct PointCloudBKE_pointcloud_new_for_eval (const struct PointCloud *pointcloud_src, int totpoint)
 
struct PointCloudBKE_pointcloud_copy_for_eval (struct PointCloud *pointcloud_src, bool reference)
 
void BKE_pointcloud_data_update (struct Depsgraph *depsgraph, struct Scene *scene, struct Object *object)
 
void BKE_pointcloud_batch_cache_dirty_tag (struct PointCloud *pointcloud, int mode)
 
void BKE_pointcloud_batch_cache_free (struct PointCloud *pointcloud)
 

Variables

const char * POINTCLOUD_ATTR_POSITION
 
const char * POINTCLOUD_ATTR_RADIUS
 
void(* BKE_pointcloud_batch_cache_dirty_tag_cb )(struct PointCloud *pointcloud, int mode)
 
void(* BKE_pointcloud_batch_cache_free_cb )(struct PointCloud *pointcloud)
 

Detailed Description

General operations for point clouds.

Definition in file BKE_pointcloud.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
BKE_POINTCLOUD_BATCH_DIRTY_ALL 

Definition at line 46 of file BKE_pointcloud.h.

Function Documentation

◆ BKE_pointcloud_add()

void* BKE_pointcloud_add ( struct Main bmain,
const char *  name 
)

Definition at line 219 of file pointcloud.cc.

References BKE_id_new(), and ID_PT.

Referenced by BKE_mesh_to_pointcloud().

◆ BKE_pointcloud_add_default()

void* BKE_pointcloud_add_default ( struct Main bmain,
const char *  name 
)

◆ BKE_pointcloud_batch_cache_dirty_tag()

void BKE_pointcloud_batch_cache_dirty_tag ( struct PointCloud pointcloud,
int  mode 
)

◆ BKE_pointcloud_batch_cache_free()

void BKE_pointcloud_batch_cache_free ( struct PointCloud pointcloud)

Definition at line 443 of file pointcloud.cc.

References PointCloud::batch_cache, and BKE_pointcloud_batch_cache_free_cb.

Referenced by pointcloud_free_data().

◆ BKE_pointcloud_boundbox_get()

struct BoundBox* BKE_pointcloud_boundbox_get ( struct Object ob)

◆ BKE_pointcloud_copy_for_eval()

struct PointCloud* BKE_pointcloud_copy_for_eval ( struct PointCloud pointcloud_src,
bool  reference 
)

◆ BKE_pointcloud_customdata_required()

bool BKE_pointcloud_customdata_required ( const struct PointCloud pointcloud,
const char *  name 
)

◆ BKE_pointcloud_data_update()

void BKE_pointcloud_data_update ( struct Depsgraph depsgraph,
struct Scene scene,
struct Object object 
)

◆ BKE_pointcloud_minmax()

bool BKE_pointcloud_minmax ( const struct PointCloud pointcloud,
float  r_min[3],
float  r_max[3] 
)

◆ BKE_pointcloud_new_for_eval()

struct PointCloud* BKE_pointcloud_new_for_eval ( const struct PointCloud pointcloud_src,
int  totpoint 
)

◆ BKE_pointcloud_new_nomain()

struct PointCloud* BKE_pointcloud_new_nomain ( int  totpoint)

Variable Documentation

◆ BKE_pointcloud_batch_cache_dirty_tag_cb

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

Definition at line 433 of file pointcloud.cc.

Referenced by BKE_pointcloud_batch_cache_dirty_tag(), and DRW_engines_register().

◆ BKE_pointcloud_batch_cache_free_cb

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

Definition at line 434 of file pointcloud.cc.

Referenced by BKE_pointcloud_batch_cache_free(), and DRW_engines_register().

◆ POINTCLOUD_ATTR_POSITION

const char* POINTCLOUD_ATTR_POSITION
extern

◆ POINTCLOUD_ATTR_RADIUS

const char* POINTCLOUD_ATTR_RADIUS
extern