|
Blender V4.3
|
General operations for point clouds. More...
#include <mutex>#include "BLI_bounds_types.hh"#include "BLI_math_vector_types.hh"#include "BLI_shared_cache.hh"#include "DNA_pointcloud_types.h"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 | |
| PointCloud * | blender::bke::pointcloud_new_no_attributes (int totpoint) |
| void * | BKE_pointcloud_add (Main *bmain, const char *name) |
| void * | BKE_pointcloud_add_default (Main *bmain, const char *name) |
| PointCloud * | BKE_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, const char *name) |
| PointCloud * | BKE_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) |
Variables | |
| const char * | POINTCLOUD_ATTR_POSITION |
| const char * | POINTCLOUD_ATTR_RADIUS |
| void(* | BKE_pointcloud_batch_cache_dirty_tag_cb )(PointCloud *pointcloud, int mode) |
| void(* | BKE_pointcloud_batch_cache_free_cb )(PointCloud *pointcloud) |
General operations for point clouds.
Definition in file BKE_pointcloud.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| BKE_POINTCLOUD_BATCH_DIRTY_ALL | |
Definition at line 68 of file BKE_pointcloud.hh.
| void * BKE_pointcloud_add | ( | 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(), blender::io::usd::USDPointInstancerReader::create_object(), and blender::io::usd::USDPointsReader::create_object().
| void * BKE_pointcloud_add_default | ( | Main * | bmain, |
| const char * | name ) |
Definition at line 226 of file pointcloud.cc.
References BKE_libblock_alloc(), PointCloud::id, ID_PT, pointcloud_init_data(), and pointcloud_random().
Referenced by BKE_object_obdata_add_from_type(), and blender::io::alembic::AbcPointsReader::readObjectData().
| bool BKE_pointcloud_attribute_required | ( | const PointCloud * | pointcloud, |
| const char * | name ) |
Definition at line 287 of file pointcloud.cc.
References POINTCLOUD_ATTR_POSITION, and STREQ.
Referenced by BKE_attribute_required().
| void BKE_pointcloud_batch_cache_dirty_tag | ( | PointCloud * | pointcloud, |
| int | mode ) |
Definition at line 393 of file pointcloud.cc.
References PointCloud::batch_cache, and BKE_pointcloud_batch_cache_dirty_tag_cb.
Referenced by BKE_object_batch_cache_dirty_tag().
| void BKE_pointcloud_batch_cache_free | ( | PointCloud * | pointcloud | ) |
Definition at line 400 of file pointcloud.cc.
References PointCloud::batch_cache, and BKE_pointcloud_batch_cache_free_cb.
Referenced by pointcloud_free_data().
| PointCloud * BKE_pointcloud_copy_for_eval | ( | const PointCloud * | pointcloud_src | ) |
Definition at line 294 of file pointcloud.cc.
References BKE_id_copy_ex(), PointCloud::id, and LIB_ID_COPY_LOCALIZE.
Referenced by blender::bke::PointCloudComponent::copy(), blender::bke::PointCloudComponent::ensure_owns_direct_data(), blender::geometry::execute_realize_pointcloud_tasks(), blender::bke::PointCloudComponent::get_for_write(), blender::ed::geometry::get_original_geometry_eval_copy(), and blender::geometry::reorder_points().
Definition at line 354 of file pointcloud.cc.
References BKE_object_eval_assign_data(), BKE_object_free_derived_caches(), BKE_pointcloud_new_nomain(), depsgraph, blender::bke::GeometrySet::from_pointcloud(), PointCloud::id, pointcloud_evaluate_modifiers(), blender::bke::ReadOnly, and take_pointcloud_ownership_from_geometry_set().
Referenced by BKE_object_handle_data_update(), and blender::ed::object::object_force_modifier_update_for_bind().
| PointCloud * BKE_pointcloud_new_nomain | ( | int | totpoint | ) |
Definition at line 236 of file pointcloud.cc.
References BKE_idtype_idcode_to_name(), BKE_libblock_alloc(), CustomData_realloc(), PointCloud::id, ID_PT, LIB_ID_CREATE_LOCALIZE, PointCloud::pdata, pointcloud_init_data(), and PointCloud::totpoint.
Referenced by BKE_pointcloud_data_update(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_pointcloud(), blender::geometry::execute_realize_pointcloud_tasks(), blender::geometry::extract_pointcloud_points(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_distribute_points_in_grid_cc::node_geo_exec(), blender::nodes::node_geo_distribute_points_in_volume_cc::node_geo_exec(), blender::nodes::node_geo_points_cc::node_geo_exec(), blender::nodes::node_geo_distribute_points_on_faces_cc::point_distribution_calculate(), blender::geometry::point_merge_by_distance(), blender::nodes::node_geo_curve_to_points_cc::pointcloud_from_curves(), blender::bke::pointcloud_new_no_attributes(), blender::io::alembic::AbcPointsReader::read_geometry(), blender::io::usd::USDPointsReader::read_geometry(), blender::io::usd::USDPointInstancerReader::read_object_data(), blender::geometry::separate_point_cloud_selection(), and blender::bke::bake::try_load_pointcloud().
| void BKE_pointcloud_nomain_to_pointcloud | ( | PointCloud * | pointcloud_src, |
| PointCloud * | pointcloud_dst ) |
Definition at line 249 of file pointcloud.cc.
References BKE_id_free(), BLI_assert, CD_MASK_ALL, CustomData_free(), CustomData_init_from(), PointCloud::id, ID_TAG_NO_MAIN, PointCloud::pdata, ID::tag, and PointCloud::totpoint.
Referenced by blender::ed::object::modifier_apply_obdata(), blender::io::usd::USDPointInstancerReader::read_object_data(), blender::io::usd::USDPointsReader::read_object_data(), blender::io::alembic::AbcPointsReader::readObjectData(), and blender::ed::geometry::store_result_geometry().
|
extern |
Definition at line 390 of file pointcloud.cc.
Referenced by BKE_pointcloud_batch_cache_dirty_tag(), and DRW_engines_register().
|
extern |
Definition at line 391 of file pointcloud.cc.
Referenced by BKE_pointcloud_batch_cache_free(), and DRW_engines_register().
|
extern |
Definition at line 55 of file pointcloud.cc.
Referenced by BKE_pointcloud_attribute_required().
|
extern |
Definition at line 56 of file pointcloud.cc.
Referenced by pointcloud_random().