|
Blender V5.0
|
General operations for point clouds. More...
#include "BLI_bounds_types.hh"#include "BLI_kdopbvh.hh"#include "BLI_math_vector_types.hh"#include "BLI_shared_cache.hh"#include "BLI_string_ref.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) |
| PointCloud * | BKE_pointcloud_add (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, blender::StringRef name) |
| void | pointcloud_copy_parameters (const PointCloud &src, PointCloud &dst) |
| 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) |
| const AttributeAccessorFunctions & | blender::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) |
General operations for point clouds.
Definition in file BKE_pointcloud.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| BKE_POINTCLOUD_BATCH_DIRTY_ALL | |
Definition at line 73 of file BKE_pointcloud.hh.
| PointCloud * BKE_pointcloud_add | ( | Main * | bmain, |
| const char * | name ) |
Definition at line 227 of file pointcloud.cc.
References BKE_id_new(), and name.
Referenced by BKE_mesh_to_pointcloud(), BKE_object_obdata_add_from_type(), blender::io::usd::USDPointInstancerReader::create_object(), blender::io::usd::USDPointsReader::create_object(), and blender::io::alembic::AbcPointsReader::readObjectData().
| 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().
| void BKE_pointcloud_batch_cache_dirty_tag | ( | PointCloud * | pointcloud, |
| int | mode ) |
Definition at line 439 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 446 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 338 of file pointcloud.cc.
References BKE_id_copy_ex(), PointCloud::id, and LIB_ID_COPY_LOCALIZE.
Referenced by blender::bke::PointCloudComponent::copy(), blender::ed::pointcloud::copy_selection(), 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(), blender::ed::pointcloud::join_objects_exec(), and blender::ed::object::modifier_apply_obdata().
Definition at line 398 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 234 of file pointcloud.cc.
References BKE_idtype_idcode_to_name(), BKE_libblock_alloc(), BKE_libblock_init_empty(), PointCloud::id, ID_PT, LIB_ID_CREATE_LOCALIZE, blender::bke::Point, and PointCloud::totpoint.
Referenced by BKE_pointcloud_data_update(), BPy_GeometrySet_get_instances_pointcloud(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::ed::pointcloud::copy_selection(), blender::ed::pointcloud::duplicate_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::io::csv::import_csv_as_pointcloud(), 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::io::alembic::AbcPointsReader::read_geometry(), blender::io::usd::USDPointInstancerReader::read_geometry(), blender::io::usd::USDPointsReader::read_geometry(), and blender::geometry::separate_pointcloud_selection().
| void BKE_pointcloud_nomain_to_pointcloud | ( | PointCloud * | pointcloud_src, |
| PointCloud * | pointcloud_dst ) |
Definition at line 249 of file pointcloud.cc.
References PointCloud::attribute_storage, BKE_id_free(), BLI_assert, PointCloud::id, ID_TAG_NO_MAIN, PointCloud::runtime, ID::tag, and PointCloud::totpoint.
Referenced by blender::ed::pointcloud::duplicate_points(), blender::ed::pointcloud::join_objects_exec(), 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(), blender::ed::pointcloud::remove_selection(), and blender::ed::geometry::store_result_geometry().
| 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().
|
extern |
Definition at line 436 of file pointcloud.cc.
Referenced by BKE_pointcloud_batch_cache_dirty_tag(), and DRW_module_init().
|
extern |
Definition at line 437 of file pointcloud.cc.
Referenced by BKE_pointcloud_batch_cache_free(), and DRW_module_init().