|
Blender V5.0
|
#include <BKE_geometry_set.hh>
Classes | |
| struct | GatheredAttributes |
Public Types | |
| using | AttributeForeachCallback |
Public Member Functions | |
| template<typename Component> | |
| Component & | get_component_for_write () |
| template<typename Component> | |
| const Component * | get_component () const |
| template<typename Component> | |
| bool | has () const |
| template<typename Component> | |
| bool | has_component () const |
| template<typename Component> | |
| void | remove () |
| uint64_t | hash () const |
Public Attributes | |
| std::string | name |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const GeometrySet &geometry_set) |
| bool | operator== (const GeometrySet &a, const GeometrySet &b) |
A geometry set is a container for multiple kinds of geometry. It does not own geometry directly itself, instead geometry is owned by multiple #GeometryComponents, and the geometry set increases the user count of each component, so they avoid losing the data. This means individual components might be shared between multiple geometries and other code. Shared components are copied automatically when write access is requested.
The components usually do not store data directly, but keep a reference to a data structure defined elsewhere. There is at most one component of each type:
Copying a geometry set is a relatively cheap operation, because it does not copy the referenced geometry components, so GeometrySet can often be passed or moved by value.
Definition at line 145 of file BKE_geometry_set.hh.
Definition at line 251 of file BKE_geometry_set.hh.
|
default |
The methods are defaulted here so that they are not instantiated in every translation unit.
Referenced by attribute_foreach(), from_curves(), from_grease_pencil(), from_instances(), from_mesh(), from_pointcloud(), from_volume(), GeometrySet(), GeometrySet(), operator<<, operator=(), operator=(), and operator==.
|
default |
References GeometrySet().
|
default |
References GeometrySet().
|
default |
| void blender::bke::GeometrySet::add | ( | const GeometryComponent & | component | ) |
Definition at line 167 of file geometry_set.cc.
References blender::ImplicitSharingInfo::add_user(), BLI_assert, and blender::bke::GeometryComponent::type().
Referenced by blender::geometry::join_component_type(), blender::nodes::node_geo_interpolate_curves_cc::node_geo_exec(), blender::nodes::node_geo_separate_components_cc::node_geo_exec(), and blender::nodes::node_geo_sort_elements_cc::node_geo_exec().
| void blender::bke::GeometrySet::attribute_foreach | ( | Span< GeometryComponent::Type > | component_types, |
| bool | include_instances, | ||
| AttributeForeachCallback | callback ) const |
Definition at line 635 of file geometry_set.cc.
References attribute_foreach(), blender::bke::GeometryComponent::attributes(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::Instances::foreach_referenced_geometry(), GeometrySet(), get_component(), get_grease_pencil(), get_instances(), blender::bke::GeometryComponent::GreasePencil, has(), has_instances(), and blender::bke::AttributeIter::name.
Referenced by attribute_foreach(), gather_attributes_for_propagation(), and blender::nodes::geo_eval_log::GeometryInfoLog::GeometryInfoLog().
| void blender::bke::GeometrySet::clear | ( | ) |
Remove all geometry components from the geometry set.
Definition at line 268 of file geometry_set.cc.
Referenced by blender::nodes::node_geo_duplicate_elements_cc::duplicate_edges(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_faces(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_instances(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_layers(), blender::modifyGeometry(), blender::bke::bake::move_bake_items_to_socket_values(), blender::nodes::node_geo_bounding_box_cc::node_geo_exec(), and blender::bke::InstanceReference::to_geometry_set().
| std::optional< Bounds< float3 > > blender::bke::GeometrySet::compute_boundbox_without_instances | ( | bool | use_radius = true, |
| bool | use_subdiv = false ) const |
Definition at line 186 of file geometry_set.cc.
References BKE_volume_min_max(), get_curves(), get_grease_pencil(), get_mesh(), get_pointcloud(), get_volume(), and blender::bounds::merge().
Referenced by blender::nodes::node_geo_input_instance_bounds_cc::InstanceBoundsField::get_varray_for_context(), and blender::nodes::node_geo_bounding_box_cc::node_geo_exec().
| void blender::bke::GeometrySet::count_memory | ( | MemoryCounter & | memory | ) | const |
Definition at line 624 of file geometry_set.cc.
References blender::memory_counter::MemoryCounter::add_shared().
Referenced by blender::nodes::node_geo_import_csv::LoadCsvCache::count_memory(), blender::nodes::node_geo_import_obj::LoadObjCache::count_memory(), blender::nodes::node_geo_import_stl::LoadStlCache::count_memory(), and blender::nodes::nodes_geo_import_ply::LoadPlyCache::count_memory().
| void blender::bke::GeometrySet::ensure_no_shared_components | ( | ) |
Typically, multiple GeometrySet may share the same GeometryComponent. This is fine as long as we can guarantee that the data is read-only. However, if some geometry is available in Python, that guarantee is not possible currently. For that case it can make sense that the GeometrySet is the unique owner of the geometries it contains.
Definition at line 309 of file geometry_set.cc.
References get_component_for_write(), and i.
| void blender::bke::GeometrySet::ensure_owns_all_data | ( | ) |
Same as ensure_owns_direct_data but also turns object/collection instances into geometry instances so that they can be owned.
Definition at line 289 of file geometry_set.cc.
References ensure_owns_direct_data(), and get_instances_for_write().
Referenced by blender::bke::bake::GeometryBakeItem::prepare_geometry_for_bake().
| void blender::bke::GeometrySet::ensure_owns_direct_data | ( | ) |
Make sure that the geometry can be cached. This does not ensure ownership of object/collection instances. This is necessary because sometimes components only have read-only or editing access to their data, which might be freed later if this geometry set outlasts the data.
Definition at line 275 of file geometry_set.cc.
References blender::bke::GeometryComponent::ensure_owns_direct_data(), and get_component_for_write().
Referenced by ensure_owns_all_data(), blender::bke::modifier_modify_mesh_and_geometry_set(), blender::nodes::node_geo_instance_on_points_cc::node_geo_exec(), and blender::nodes::node_geo_proximity_cc::node_geo_exec().
|
static |
Create a new geometry set that only contains the given curves.
Definition at line 451 of file geometry_set.cc.
References GeometrySet(), and replace_curves().
Referenced by blender::ed::sculpt_paint::greasepencil::add_strokes_to_drawing(), blender::ed::curves::append_primitive_curve(), blender::ed::greasepencil::clipboard_paste_strokes_ex(), blender::ed::object::convert_grease_pencil_component_to_curves(), blender::ed::object::convert_grease_pencil_to_mesh(), blender::create_array_copies(), blender::create_mirror_copies(), blender::duplicate_strokes(), blender::ed::spreadsheet::geometry_display_data_get(), blender::io::obj::geometry_to_blender_geometry_set(), blender::ed::geometry::get_original_geometry_eval_copy(), blender::ed::sculpt_paint::grease_pencil_apply_fill(), blender::ed::greasepencil::grease_pencil_copy_strokes_exec(), blender::ed::greasepencil::grease_pencil_move_to_layer_exec(), blender::ed::greasepencil::grease_pencil_outline_exec(), blender::ed::curves::join_objects_exec(), MOD_lineart_gpencil_generate_v3(), blender::ed::object::modifier_apply_obdata(), blender::modify_drawing(), and blender::ed::greasepencil::paste_all_strokes_from_clipboard().
|
static |
Create a new geometry set that only contains the given Grease Pencil data.
Definition at line 465 of file geometry_set.cc.
References GeometrySet(), and replace_grease_pencil().
Referenced by blender::ed::spreadsheet::geometry_display_data_get(), and blender::ed::geometry::get_original_geometry_eval_copy().
|
static |
Create a new geometry set that only contains the given instances.
Definition at line 458 of file geometry_set.cc.
References GeometrySet(), and replace_instances().
Referenced by blender::create_array_copies(), blender::create_mirror_copies(), blender::duplicate_strokes(), blender::bke::Instances::ensure_geometry_instances(), blender::ed::greasepencil::join_geometries_with_transforms(), blender::ed::curves::join_objects_exec(), blender::ed::pointcloud::join_objects_exec(), and blender::bke::object_get_evaluated_geometry_set().
|
static |
Create a new geometry set that only contains the given mesh.
Definition at line 430 of file geometry_set.cc.
References GeometrySet(), and replace_mesh().
Referenced by blender::ed::sculpt_paint::trim::apply_join_operation(), blender::ed::object::create_applied_mesh_for_modifier(), blender::ed::spreadsheet::geometry_display_data_get(), blender::io::obj::geometry_to_blender_geometry_set(), blender::ed::geometry::get_original_geometry_eval_copy(), blender::modify_mesh(), and modify_mesh().
|
static |
Create a new geometry set that only contains the given point cloud.
Definition at line 444 of file geometry_set.cc.
References GeometrySet(), and replace_pointcloud().
Referenced by BKE_pointcloud_data_update(), blender::ed::spreadsheet::geometry_display_data_get(), blender::ed::geometry::get_original_geometry_eval_copy(), 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(), and blender::io::alembic::AbcPointsReader::readObjectData().
|
static |
Create a new geometry set that only contains the given volume.
Definition at line 437 of file geometry_set.cc.
References GeometrySet(), and replace_volume().
Referenced by blender::nodes::geo_eval_log::ViewerNodeLog::main_geometry().
| void blender::bke::GeometrySet::gather_attributes_for_propagation | ( | Span< GeometryComponent::Type > | component_types, |
| GeometryComponent::Type | dst_component_type, | ||
| bool | include_instances, | ||
| const AttributeFilter & | attribute_filter, | ||
| GatheredAttributes & | r_attributes ) const |
Definition at line 721 of file geometry_set.cc.
References blender::bke::GeometrySet::GatheredAttributes::add(), blender::bke::AttributeFilter::allow_skip(), attribute_foreach(), blender::bke::attribute_is_builtin_on_component_type(), blender::bke::GeometryComponent::attributes(), blender::bke::AttributeMetaData::data_type, blender::bke::AttributeMetaData::domain, blender::bke::Instance, blender::bke::GeometryComponent::Instance, blender::bke::Point, and blender::bke::String.
Referenced by blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::nodes::node_geo_instance_on_points_cc::node_geo_exec(), and blender::nodes::node_geo_distribute_points_on_faces_cc::point_distribution_calculate().
| Vector< GeometryComponent::Type > blender::bke::GeometrySet::gather_component_types | ( | bool | include_instances, |
| bool | ignore_empty ) const |
Definition at line 785 of file geometry_set.cc.
References blender::bke::gather_component_types_recursive(), and types.
Referenced by blender::nodes::GeoNodeExecParams::check_input_geometry_set(), and blender::nodes::node_geo_duplicate_elements_cc::duplicate_points().
|
inline |
Definition at line 183 of file BKE_geometry_set.hh.
References BLI_STATIC_ASSERT, get_component(), and blender::bke::is_geometry_component_v.
Referenced by attribute_foreach(), get_component(), get_curve_edit_hints(), get_curves(), get_gizmo_edit_hints(), get_grease_pencil(), get_grease_pencil_edit_hints(), get_instances(), get_mesh(), get_pointcloud(), get_volume(), has_curves(), has_grease_pencil(), has_instances(), has_mesh(), has_pointcloud(), and has_volume().
| const GeometryComponent * blender::bke::GeometrySet::get_component | ( | GeometryComponent::Type | component_type | ) | const |
Get the component of the given type. Might return null if the component does not exist yet.
Definition at line 140 of file geometry_set.cc.
Referenced by blender::io::usd::USDPointInstancerWriter::do_write(), find_geonode_attribute_rgba(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), make_duplis_geometry_set_impl(), blender::nodes::node_geo_attribute_domain_size_cc::node_geo_exec(), blender::nodes::node_geo_distribute_points_in_volume_cc::node_geo_exec(), blender::nodes::node_geo_instance_on_points_cc::node_geo_exec(), blender::nodes::node_geo_interpolate_curves_cc::node_geo_exec(), blender::nodes::node_geo_separate_components_cc::node_geo_exec(), blender::nodes::node_geo_sort_elements_cc::node_geo_exec(), blender::nodes::node_geo_split_to_instances_cc::node_geo_exec(), and blender::nodes::node_geo_remove_attribute_cc::remove_attributes_recursive().
|
inline |
Definition at line 173 of file BKE_geometry_set.hh.
References BLI_STATIC_ASSERT, get_component_for_write(), and blender::bke::is_geometry_component_v.
Referenced by ensure_no_shared_components(), ensure_owns_direct_data(), get_component_for_write(), get_curve_edit_hints_for_write(), get_gizmo_edit_hints_for_write(), get_grease_pencil_edit_hints_for_write(), replace_curves(), replace_grease_pencil(), replace_instances(), replace_mesh(), replace_pointcloud(), and replace_volume().
| GeometryComponent & blender::bke::GeometrySet::get_component_for_write | ( | GeometryComponent::Type | component_type | ) |
This method can only be used when the geometry set is mutable. It returns a mutable geometry component of the given type.
Definition at line 113 of file geometry_set.cc.
References blender::bke::GeometryComponent::create().
Referenced by blender::ed::sculpt_paint::trim::apply_join_operation(), blender::ed::object::create_applied_mesh_for_modifier(), blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), blender::bke::editbmesh_build_data(), blender::geometry::execute_instances_tasks(), blender::geometry::execute_realize_edit_data_tasks(), blender::nodes::node_geo_curve_to_mesh_cc::grease_pencil_to_mesh(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_generation_items_group(), blender::geometry::join_component_type(), blender::ed::pointcloud::join_objects_exec(), blender::bke::mesh_build_data(), blender::ed::object::modifier_apply_obdata(), blender::bke::modifier_modify_mesh_and_geometry_set(), blender::modify_geometry_set(), blender::modify_mesh(), modify_mesh(), blender::nodes::node_geo_attribute_capture_cc::node_geo_exec(), blender::nodes::node_geo_instance_on_points_cc::node_geo_exec(), blender::nodes::node_geo_set_id_cc::node_geo_exec(), blender::nodes::node_geo_set_instance_transform_cc::node_geo_exec(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), blender::geometry::propagate_instances_to_keep(), blender::io::usd::USDPointInstancerReader::read_object_data(), blender::io::usd::USDPointsReader::read_object_data(), blender::io::alembic::AbcPointsReader::readObjectData(), blender::geometry::realize_instances(), blender::nodes::node_geo_remove_attribute_cc::remove_attributes_recursive(), take_pointcloud_ownership_from_geometry_set(), and take_volume_ownership_from_geometry_set().
| Vector< const GeometryComponent * > blender::bke::GeometrySet::get_components | ( | ) | const |
Get all geometry components in this geometry set for read-only access.
Definition at line 175 of file geometry_set.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append().
Referenced by blender::bke::gather_component_types_recursive(), blender::geometry::gather_realize_tasks_recursive(), blender::nodes::geo_eval_log::GeometryInfoLog::GeometryInfoLog(), blender::nodes::node_geo_attribute_statistic_cc::node_geo_exec(), and blender::nodes::LazyFunctionForForeachGeometryElementZone::prepare_components().
| const CurvesEditHints * blender::bke::GeometrySet::get_curve_edit_hints | ( | ) | const |
Returns read-only curve edit hints or null.
Definition at line 354 of file geometry_set.cc.
References blender::bke::GeometryComponentEditData::curves_edit_hints_, get_component(), and nullptr.
Referenced by blender::nodes::GeoNodeExecParams::check_output_geometry_set(), and operator<<.
| CurvesEditHints * blender::bke::GeometrySet::get_curve_edit_hints_for_write | ( | ) |
Returns mutable curve edit hints or null.
Definition at line 588 of file geometry_set.cc.
References blender::bke::GeometryComponentEditData::curves_edit_hints_, get_component_for_write(), and has().
Referenced by blender::nodes::node_geo_deform_curves_on_surface_cc::node_geo_exec().
| const Curves * blender::bke::GeometrySet::get_curves | ( | ) | const |
Returns a read-only curves data-block or null.
Definition at line 342 of file geometry_set.cc.
References blender::bke::CurveComponent::get(), get_component(), and nullptr.
Referenced by BKE_displist_make_curveTypes(), blender::nodes::GeoNodeExecParams::check_input_geometry_set(), compute_boundbox_without_instances(), blender::ed::object::convert_grease_pencil_component_to_curves(), blender::ed::object::convert_grease_pencil_to_mesh(), blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), blender::nodes::node_geo_curves_to_grease_pencil_cc::curve_instances_to_grease_pencil_layers(), blender::nodes::node_geo_curve_to_mesh_cc::curve_to_mesh(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_curves(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_curve(), blender::geometry::gather_curves_to_realize(), blender::nodes::node_geo_curve_trim_cc::geometry_set_curve_trim(), blender::ed::greasepencil::grease_pencil_copy_strokes_exec(), blender::ed::greasepencil::join_curves(), blender::geometry::join_curves(), blender::nodes::node_geo_curve_fillet_cc::node_geo_exec(), blender::nodes::node_geo_curve_length_cc::node_geo_exec(), blender::nodes::node_geo_curve_sample_cc::node_geo_exec(), blender::nodes::node_geo_curve_spline_type_cc::node_geo_exec(), blender::nodes::node_geo_curve_subdivide_cc::node_geo_exec(), blender::nodes::node_geo_curve_to_mesh_cc::node_geo_exec(), blender::nodes::node_geo_curves_to_grease_pencil_cc::node_geo_exec(), blender::nodes::node_geo_interpolate_curves_cc::node_geo_exec(), operator<<, blender::ed::greasepencil::paste_all_strokes_from_clipboard(), replace_curves(), blender::geometry::separate_geometry(), and blender::nodes::LazyFunctionForForeachGeometryElementZone::try_extract_element_geometries().
| Curves * blender::bke::GeometrySet::get_curves_for_write | ( | ) |
Returns a mutable curves data-block or null. No ownership is transferred.
Definition at line 576 of file geometry_set.cc.
References blender::bke::CurveComponent::get_for_write(), and nullptr.
Referenced by blender::ed::curves::append_primitive_curve(), blender::ed::greasepencil::clipboard_paste_strokes_ex(), blender::create_array_copies(), blender::create_mirror_copies(), blender::duplicate_strokes(), blender::ed::sculpt_paint::grease_pencil_apply_fill(), blender::ed::greasepencil::grease_pencil_move_to_layer_exec(), blender::ed::curves::join_objects_exec(), blender::geometry::mix_geometries(), MOD_lineart_gpencil_generate_v3(), blender::ed::object::modifier_apply_obdata(), blender::modify_drawing(), blender::nodes::node_geo_curve_reverse_cc::node_geo_exec(), blender::nodes::node_geo_curve_set_handle_type_cc::node_geo_exec(), blender::nodes::node_geo_deform_curves_on_surface_cc::node_geo_exec(), blender::nodes::node_geo_set_curve_handles_cc::node_geo_exec(), blender::nodes::node_geo_set_curve_normal_cc::node_geo_exec(), blender::nodes::node_geo_set_curve_radius_cc::node_geo_exec(), blender::nodes::node_geo_set_curve_tilt_cc::node_geo_exec(), blender::nodes::node_geo_set_spline_cyclic_cc::node_geo_exec(), blender::nodes::node_geo_set_spline_resolution_cc::node_geo_exec(), blender::io::alembic::AbcCurveReader::read_geometry(), and blender::io::usd::USDCurvesReader::read_geometry().
| const GizmoEditHints * blender::bke::GeometrySet::get_gizmo_edit_hints | ( | ) | const |
Returns read-only gizmo edit hints or null.
Definition at line 366 of file geometry_set.cc.
References get_component(), blender::bke::GeometryComponentEditData::gizmo_edit_hints_, and nullptr.
| GizmoEditHints * blender::bke::GeometrySet::get_gizmo_edit_hints_for_write | ( | ) |
Returns mutable gizmo edit hints or null.
Definition at line 608 of file geometry_set.cc.
References get_component_for_write(), blender::bke::GeometryComponentEditData::gizmo_edit_hints_, and has().
| const GreasePencil * blender::bke::GeometrySet::get_grease_pencil | ( | ) | const |
Returns a read-only Grease Pencil data-block or null.
Definition at line 372 of file geometry_set.cc.
References blender::bke::GreasePencilComponent::get(), get_component(), and nullptr.
Referenced by attribute_foreach(), blender::nodes::GeoNodeExecParams::check_input_geometry_set(), compute_boundbox_without_instances(), blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_layers(), blender::geometry::gather_grease_pencils_to_realize(), blender::nodes::node_geo_curve_to_mesh_cc::grease_pencil_to_mesh(), make_duplis_geometry_set_impl(), blender::nodes::node_geo_curve_length_cc::node_geo_exec(), blender::nodes::node_geo_grease_pencil_to_curves_cc::node_geo_exec(), blender::nodes::node_geo_instance_on_points_cc::node_geo_exec(), operator<<, blender::nodes::LazyFunctionForForeachGeometryElementZone::prepare_components(), replace_grease_pencil(), blender::geometry::separate_geometry(), and blender::nodes::LazyFunctionForForeachGeometryElementZone::try_extract_element_geometries().
| const GreasePencilEditHints * blender::bke::GeometrySet::get_grease_pencil_edit_hints | ( | ) | const |
Returns read-only Grease Pencil edit hints or null.
Definition at line 360 of file geometry_set.cc.
References get_component(), blender::bke::GeometryComponentEditData::grease_pencil_edit_hints_, and nullptr.
| GreasePencilEditHints * blender::bke::GeometrySet::get_grease_pencil_edit_hints_for_write | ( | ) |
Returns mutable Grease Pencil edit hints or null.
Definition at line 598 of file geometry_set.cc.
References get_component_for_write(), blender::bke::GeometryComponentEditData::grease_pencil_edit_hints_, and has().
| GreasePencil * blender::bke::GeometrySet::get_grease_pencil_for_write | ( | ) |
Returns a mutable Grease Pencil data-block or null. No ownership is transferred.
Definition at line 618 of file geometry_set.cc.
References blender::bke::GreasePencilComponent::get_for_write(), and nullptr.
Referenced by blender::nodes::node_geo_duplicate_elements_cc::duplicate_curves(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_grease_pencil(), blender::nodes::node_geo_curve_trim_cc::geometry_set_curve_trim(), blender::modify_geometry_set(), blender::modify_geometry_set(), blender::nodes::node_geo_curve_fillet_cc::node_geo_exec(), blender::nodes::node_geo_curve_reverse_cc::node_geo_exec(), blender::nodes::node_geo_curve_subdivide_cc::node_geo_exec(), blender::nodes::node_geo_set_curve_normal_cc::node_geo_exec(), blender::nodes::node_geo_set_curve_radius_cc::node_geo_exec(), blender::nodes::node_geo_set_curve_tilt_cc::node_geo_exec(), blender::nodes::node_geo_set_material_index_cc::node_geo_exec(), blender::nodes::node_geo_set_spline_cyclic_cc::node_geo_exec(), blender::nodes::node_geo_set_spline_resolution_cc::node_geo_exec(), and blender::geometry::separate_geometry().
| const Instances * blender::bke::GeometrySet::get_instances | ( | ) | const |
Returns read-only instances or null.
Definition at line 348 of file geometry_set.cc.
References blender::bke::InstancesComponent::get(), get_component(), and nullptr.
Referenced by blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), attribute_foreach(), blender::ed::spreadsheet::GeometryInstancesTreeView::build_tree_for_instances(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_instances(), blender::bke::gather_component_types_recursive(), blender::geometry::gather_curves_to_realize(), blender::geometry::gather_grease_pencils_to_realize(), blender::geometry::gather_meshes_to_realize(), blender::geometry::gather_pointclouds_to_realize(), make_duplis_geometry_set_impl(), blender::nodes::node_geo_curves_to_grease_pencil_cc::node_geo_exec(), blender::nodes::node_geo_realize_instances_cc::node_geo_exec(), blender::nodes::node_geo_sort_elements_cc::node_geo_exec(), operator<<, blender::geometry::propagate_instances_to_keep(), blender::geometry::realize_instances(), replace_instances(), and blender::nodes::LazyFunctionForForeachGeometryElementZone::try_extract_element_geometries().
| Instances * blender::bke::GeometrySet::get_instances_for_write | ( | ) |
Returns mutable instances or null. No ownership is transferred.
Definition at line 582 of file geometry_set.cc.
References blender::bke::InstancesComponent::get_for_write(), and nullptr.
Referenced by blender::geometry::delete_selected_instances(), blender::bke::Instances::ensure_geometry_instances(), ensure_owns_all_data(), blender::geometry::mix_geometries(), blender::nodes::node_geo_instance_on_points_cc::node_geo_exec(), blender::nodes::node_geo_rotate_instances_cc::node_geo_exec(), blender::nodes::node_geo_scale_instances_cc::node_geo_exec(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), blender::nodes::node_geo_translate_instances_cc::node_geo_exec(), blender::nodes::node_geo_remove_attribute_cc::remove_attributes_recursive(), and blender::geometry::remove_id_attribute_from_instances().
| const Mesh * blender::bke::GeometrySet::get_mesh | ( | ) | const |
Returns a read-only mesh or null.
Definition at line 318 of file geometry_set.cc.
References blender::bke::MeshComponent::get(), get_component(), and nullptr.
Referenced by BKE_object_get_evaluated_mesh_no_subsurf_unchecked(), blender::nodes::GeoNodeExecParams::check_input_geometry_set(), compute_boundbox_without_instances(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_edges(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_faces(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_mesh(), blender::geometry::gather_meshes_to_realize(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), make_duplis_geometry_set_impl(), modify_geometry_set(), blender::modifyGeometry(), blender::nodes::node_geo_boolean_cc::node_geo_exec(), blender::nodes::node_geo_dual_mesh_cc::node_geo_exec(), blender::nodes::node_geo_edge_paths_to_curves_cc::node_geo_exec(), blender::nodes::node_geo_edge_split_cc::node_geo_exec(), blender::nodes::node_geo_merge_by_distance_cc::node_geo_exec(), blender::nodes::node_geo_mesh_subdivide_cc::node_geo_exec(), blender::nodes::node_geo_mesh_to_curve_cc::node_geo_exec(), blender::nodes::node_geo_mesh_to_density_grid_cc::node_geo_exec(), blender::nodes::node_geo_mesh_to_sdf_grid_cc::node_geo_exec(), blender::nodes::node_geo_mesh_to_volume_cc::node_geo_exec(), blender::nodes::node_geo_raycast_cc::node_geo_exec(), blender::nodes::node_geo_subdivision_surface_cc::node_geo_exec(), blender::nodes::node_geo_triangulate_cc::node_geo_exec(), operator<<, blender::nodes::node_geo_distribute_points_on_faces_cc::point_distribution_calculate(), replace_mesh(), blender::geometry::separate_geometry(), and blender::nodes::LazyFunctionForForeachGeometryElementZone::try_extract_element_geometries().
| Mesh * blender::bke::GeometrySet::get_mesh_for_write | ( | ) |
Returns a mutable mesh or null. No ownership is transferred.
Definition at line 558 of file geometry_set.cc.
References blender::bke::MeshComponent::get_for_write(), and nullptr.
Referenced by curve_calc_modifiers_post(), blender::geometry::mix_geometries(), blender::modifyGeometry(), blender::nodes::node_geo_edge_split_cc::node_geo_exec(), blender::nodes::node_geo_extrude_mesh_cc::node_geo_exec(), blender::nodes::node_geo_flip_faces_cc::node_geo_exec(), blender::nodes::node_geo_set_material_index_cc::node_geo_exec(), blender::nodes::node_geo_set_mesh_normal_cc::node_geo_exec(), blender::nodes::node_geo_set_shade_smooth_cc::node_geo_exec(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), blender::io::alembic::AbcMeshReader::read_geometry(), blender::io::alembic::AbcSubDReader::read_geometry(), blender::io::usd::USDMeshReader::read_geometry(), and blender::io::usd::USDShapeReader::read_geometry().
| const PointCloud * blender::bke::GeometrySet::get_pointcloud | ( | ) | const |
Returns a read-only point cloud of null.
Definition at line 330 of file geometry_set.cc.
References blender::bke::PointCloudComponent::get(), get_component(), and nullptr.
Referenced by blender::nodes::GeoNodeExecParams::check_input_geometry_set(), compute_boundbox_without_instances(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_pointcloud(), blender::geometry::gather_pointclouds_to_realize(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), make_duplis_geometry_set_impl(), blender::nodes::node_geo_merge_by_distance_cc::node_geo_exec(), blender::nodes::node_geo_points_to_curves_cc::node_geo_exec(), operator<<, replace_pointcloud(), blender::geometry::separate_geometry(), and blender::nodes::LazyFunctionForForeachGeometryElementZone::try_extract_element_geometries().
| PointCloud * blender::bke::GeometrySet::get_pointcloud_for_write | ( | ) |
Returns a mutable point cloud or null. No ownership is transferred.
Definition at line 564 of file geometry_set.cc.
References blender::bke::PointCloudComponent::get_for_write(), and nullptr.
Referenced by blender::geometry::mix_geometries(), blender::nodes::node_geo_set_point_radius_cc::node_geo_exec(), blender::io::alembic::AbcPointsReader::read_geometry(), blender::io::usd::USDPointInstancerReader::read_geometry(), and blender::io::usd::USDPointsReader::read_geometry().
| const Volume * blender::bke::GeometrySet::get_volume | ( | ) | const |
Returns a read-only volume or null.
Definition at line 336 of file geometry_set.cc.
References blender::bke::VolumeComponent::get(), get_component(), and nullptr.
Referenced by compute_boundbox_without_instances(), make_duplis_geometry_set_impl(), operator<<, and replace_volume().
| Volume * blender::bke::GeometrySet::get_volume_for_write | ( | ) |
Returns a mutable volume or null. No ownership is transferred.
Definition at line 570 of file geometry_set.cc.
References blender::bke::VolumeComponent::get_for_write(), and nullptr.
Referenced by modify_geometry_set(), modify_geometry_set(), and blender::nodes::node_geo_get_named_grid_cc::node_geo_exec().
|
inline |
Definition at line 190 of file BKE_geometry_set.hh.
References BLI_STATIC_ASSERT, has(), and blender::bke::is_geometry_component_v.
Referenced by attribute_foreach(), and has().
| bool blender::bke::GeometrySet::has | ( | const GeometryComponent::Type | component_type | ) | const |
Definition at line 145 of file geometry_set.cc.
References blender::ImplicitSharingPtr< T, IsStrong >::has_value().
Referenced by get_curve_edit_hints_for_write(), blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), get_gizmo_edit_hints_for_write(), get_grease_pencil_edit_hints_for_write(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_generation_items_group(), blender::bke::modifier_modify_mesh_and_geometry_set(), blender::nodes::node_geo_attribute_capture_cc::node_geo_exec(), blender::nodes::node_geo_instance_on_points_cc::node_geo_exec(), blender::nodes::node_geo_separate_components_cc::node_geo_exec(), blender::nodes::node_geo_set_id_cc::node_geo_exec(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), blender::nodes::node_geo_remove_attribute_cc::remove_attributes_recursive(), take_pointcloud_ownership_from_geometry_set(), and take_volume_ownership_from_geometry_set().
|
inline |
Definition at line 196 of file BKE_geometry_set.hh.
References BLI_STATIC_ASSERT, and blender::bke::is_geometry_component_v.
Referenced by blender::modify_geometry_set(), and blender::bke::object_has_geometry_set_instances().
| bool blender::bke::GeometrySet::has_curves | ( | ) | const |
Returns true when the geometry set has a curves component that has a curves data-block.
Definition at line 397 of file geometry_set.cc.
References get_component(), and blender::bke::CurveComponent::has_curves().
Referenced by BKE_displist_make_curveTypes(), blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), blender::nodes::node_geo_curve_to_mesh_cc::curve_to_mesh(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points(), blender::nodes::node_geo_curve_trim_cc::geometry_set_curve_trim(), blender::ed::sculpt_paint::grease_pencil_apply_fill(), is_empty(), blender::ed::greasepencil::join_curves(), blender::geometry::join_curves(), blender::ed::curves::join_objects_exec(), blender::ed::object::modifier_apply_obdata(), blender::modify_drawing(), blender::nodes::node_geo_curve_fillet_cc::node_geo_exec(), blender::nodes::node_geo_curve_length_cc::node_geo_exec(), blender::nodes::node_geo_curve_sample_cc::node_geo_exec(), blender::nodes::node_geo_curve_spline_type_cc::node_geo_exec(), blender::nodes::node_geo_curve_subdivide_cc::node_geo_exec(), blender::nodes::node_geo_curve_to_mesh_cc::node_geo_exec(), blender::nodes::node_geo_curves_to_grease_pencil_cc::node_geo_exec(), blender::nodes::node_geo_deform_curves_on_surface_cc::node_geo_exec(), blender::nodes::node_geo_interpolate_curves_cc::node_geo_exec(), blender::nodes::node_geo_split_to_instances_cc::node_geo_exec(), blender::ed::greasepencil::paste_all_strokes_from_clipboard(), and blender::io::usd::USDCurvesReader::read_geometry().
| bool blender::bke::GeometrySet::has_grease_pencil | ( | ) | const |
Returns true when the geometry set has a Grease Pencil component that has grease pencil data.
Definition at line 418 of file geometry_set.cc.
References get_component(), and blender::bke::GreasePencilComponent::has_grease_pencil().
Referenced by blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_layers(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points(), blender::nodes::node_geo_curve_trim_cc::geometry_set_curve_trim(), is_empty(), blender::modify_geometry_set(), blender::modify_geometry_set(), blender::nodes::node_geo_convex_hull_cc::node_geo_exec(), blender::nodes::node_geo_curve_fillet_cc::node_geo_exec(), blender::nodes::node_geo_curve_length_cc::node_geo_exec(), blender::nodes::node_geo_curve_subdivide_cc::node_geo_exec(), blender::nodes::node_geo_curve_to_mesh_cc::node_geo_exec(), and blender::nodes::node_geo_instance_on_points_cc::node_geo_exec().
| bool blender::bke::GeometrySet::has_instances | ( | ) | const |
Returns true when the geometry set has an instances component that has at least one instance.
Definition at line 384 of file geometry_set.cc.
References blender::bke::InstancesComponent::get(), get_component(), and blender::bke::Instances::instances_num().
Referenced by attribute_foreach(), blender::nodes::GeoNodeExecParams::check_input_geometry_set(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_instances(), blender::bke::Instances::ensure_geometry_instances(), is_empty(), blender::io::HierarchyContext::is_point_instancer(), blender::nodes::node_geo_attribute_capture_cc::node_geo_exec(), blender::nodes::node_geo_curves_to_grease_pencil_cc::node_geo_exec(), blender::nodes::node_geo_instances_to_points_cc::node_geo_exec(), blender::nodes::node_geo_realize_instances_cc::node_geo_exec(), blender::nodes::node_geo_set_instance_transform_cc::node_geo_exec(), blender::nodes::node_geo_split_to_instances_cc::node_geo_exec(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), operator<<, blender::geometry::realize_instances(), blender::geometry::realize_instances(), and blender::geometry::separate_geometry().
| bool blender::bke::GeometrySet::has_mesh | ( | ) | const |
Returns true when the geometry set has a mesh component that has a mesh.
Definition at line 324 of file geometry_set.cc.
References get_component(), and blender::bke::MeshComponent::has_mesh().
Referenced by blender::ed::object::create_applied_mesh_for_modifier(), curve_calc_modifiers_post(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_edges(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_faces(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points(), evaluate_surface_object(), is_empty(), modify_geometry_set(), blender::nodes::node_geo_mesh_to_volume_cc::node_geo_exec(), blender::nodes::node_geo_proximity_cc::node_geo_exec(), blender::nodes::node_geo_raycast_cc::node_geo_exec(), blender::nodes::node_geo_split_to_instances_cc::node_geo_exec(), blender::bke::object_get_evaluated_geometry_set(), and blender::nodes::node_geo_distribute_points_on_faces_cc::point_distribution_calculate().
| bool blender::bke::GeometrySet::has_pointcloud | ( | ) | const |
Returns true when the geometry set has a point cloud component that has a point cloud.
Definition at line 378 of file geometry_set.cc.
References get_component(), and blender::bke::PointCloudComponent::has_pointcloud().
Referenced by blender::nodes::node_geo_duplicate_elements_cc::duplicate_points(), is_empty(), blender::ed::pointcloud::join_objects_exec(), blender::ed::object::modifier_apply_obdata(), blender::nodes::node_geo_proximity_cc::node_geo_exec(), blender::nodes::node_geo_split_to_instances_cc::node_geo_exec(), and blender::io::alembic::AbcPointsReader::read_geometry().
| bool blender::bke::GeometrySet::has_realized_data | ( | ) | const |
Returns true when the geometry set has any data that is not an instance.
Definition at line 403 of file geometry_set.cc.
References blender::bke::GeometryComponent::Edit, ELEM, and blender::bke::GeometryComponent::Instance.
Referenced by blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::nodes::GeoNodeExecParams::check_input_geometry_set(), and blender::geometry::separate_geometry().
| bool blender::bke::GeometrySet::has_volume | ( | ) | const |
Returns true when the geometry set has a volume component that has a volume.
Definition at line 391 of file geometry_set.cc.
References get_component(), and blender::bke::VolumeComponent::has_volume().
Referenced by is_empty(), and blender::nodes::node_geo_distribute_points_in_volume_cc::node_geo_exec().
|
inline |
Definition at line 451 of file BKE_geometry_set.hh.
References blender::get_default_hash().
| bool blender::bke::GeometrySet::is_empty | ( | ) | const |
Return true if the geometry set has any component that isn't empty.
Definition at line 424 of file geometry_set.cc.
References has_curves(), has_grease_pencil(), has_instances(), has_mesh(), has_pointcloud(), and has_volume().
Referenced by blender::nodes::node_geo_duplicate_elements_cc::node_geo_exec(), and blender::nodes::node_geo_raycast_cc::node_geo_exec().
| void blender::bke::GeometrySet::keep_only | ( | Span< GeometryComponent::Type > | component_types | ) |
Remove all geometry components with types that are not in the provided list.
Definition at line 156 of file geometry_set.cc.
References blender::Span< T >::contains().
Referenced by blender::nodes::node_geo_duplicate_elements_cc::duplicate_curves(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_faces(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_layers(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_generation_items_group(), blender::nodes::node_geo_bounding_box_cc::node_geo_exec(), blender::nodes::node_geo_convex_hull_cc::node_geo_exec(), blender::nodes::node_geo_curve_to_mesh_cc::node_geo_exec(), blender::nodes::node_geo_distribute_points_in_volume_cc::node_geo_exec(), blender::nodes::node_geo_distribute_points_on_faces_cc::node_geo_exec(), blender::nodes::node_geo_edge_paths_to_curves_cc::node_geo_exec(), blender::nodes::node_geo_instance_on_points_cc::node_geo_exec(), blender::nodes::node_geo_instances_to_points_cc::node_geo_exec(), blender::nodes::node_geo_mesh_to_curve_cc::node_geo_exec(), blender::nodes::node_geo_mesh_to_volume_cc::node_geo_exec(), blender::nodes::node_geo_points_to_curves_cc::node_geo_exec(), and blender::nodes::node_geo_volume_to_mesh_cc::node_geo_exec().
|
default |
References GeometrySet().
|
default |
References GeometrySet().
| bool blender::bke::GeometrySet::owns_direct_data | ( | ) | const |
Definition at line 297 of file geometry_set.cc.
|
inline |
Definition at line 203 of file BKE_geometry_set.hh.
References BLI_STATIC_ASSERT, blender::bke::is_geometry_component_v, and remove().
Referenced by remove(), replace_curves(), replace_grease_pencil(), replace_instances(), replace_mesh(), replace_pointcloud(), and replace_volume().
| void blender::bke::GeometrySet::remove | ( | const GeometryComponent::Type | component_type | ) |
Definition at line 151 of file geometry_set.cc.
References blender::ImplicitSharingPtr< T, IsStrong >::reset().
Referenced by blender::geometry::delete_selected_instances(), blender::geometry::extract_real_geometries_recursive(), blender::nodes::node_geo_sort_elements_cc::node_geo_exec(), blender::geometry::separate_geometry(), take_pointcloud_ownership_from_geometry_set(), and take_volume_ownership_from_geometry_set().
| void blender::bke::GeometrySet::replace_curves | ( | Curves * | curves, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Clear the existing curves data-block and replace it with the given one.
Definition at line 487 of file geometry_set.cc.
References get_component_for_write(), get_curves(), remove(), and blender::bke::CurveComponent::replace().
Referenced by curve_calc_modifiers_post(), blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_curves(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_curve(), blender::geometry::execute_realize_curve_tasks(), from_curves(), blender::nodes::node_geo_curve_trim_cc::geometry_set_curve_trim(), blender::nodes::node_geo_curve_fillet_cc::node_geo_exec(), blender::nodes::node_geo_curve_spline_type_cc::node_geo_exec(), blender::nodes::node_geo_curve_subdivide_cc::node_geo_exec(), blender::nodes::node_geo_edge_paths_to_curves_cc::node_geo_exec(), blender::nodes::node_geo_mesh_to_curve_cc::node_geo_exec(), blender::nodes::node_geo_points_to_curves_cc::node_geo_exec(), and blender::geometry::separate_geometry().
| void blender::bke::GeometrySet::replace_grease_pencil | ( | GreasePencil * | grease_pencil, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Clear the existing Grease Pencil data-block and replace it with the given one.
Definition at line 543 of file geometry_set.cc.
References get_component_for_write(), get_grease_pencil(), remove(), and blender::bke::GreasePencilComponent::replace().
Referenced by blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_layers(), blender::geometry::execute_realize_grease_pencil_tasks(), from_grease_pencil(), blender::nodes::node_geo_curve_to_mesh_cc::grease_pencil_to_mesh(), and blender::geometry::separate_geometry().
| void blender::bke::GeometrySet::replace_instances | ( | Instances * | instances, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Clear the existing instances and replace them with the given one.
Definition at line 501 of file geometry_set.cc.
References get_component_for_write(), get_instances(), remove(), and blender::bke::InstancesComponent::replace().
Referenced by blender::geometry::execute_instances_tasks(), from_instances(), blender::nodes::node_geo_instance_on_points_cc::node_geo_exec(), blender::nodes::node_geo_sort_elements_cc::node_geo_exec(), and blender::bke::InstanceReference::to_geometry_set().
| void blender::bke::GeometrySet::replace_mesh | ( | Mesh * | mesh, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Clear the existing mesh and replace it with the given one.
Definition at line 473 of file geometry_set.cc.
References get_component_for_write(), get_mesh(), remove(), and blender::bke::MeshComponent::replace().
Referenced by blender::bke::add_final_mesh_as_geometry_component(), curve_calc_modifiers_post(), blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_faces(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_mesh(), evaluate_surface_object(), blender::geometry::execute_realize_mesh_tasks(), from_mesh(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::bke::modifier_modify_mesh_and_geometry_set(), blender::nodes::node_geo_boolean_cc::node_geo_exec(), blender::nodes::node_geo_bounding_box_cc::node_geo_exec(), blender::nodes::node_geo_convex_hull_cc::node_geo_exec(), blender::nodes::node_geo_curve_to_mesh_cc::node_geo_exec(), blender::nodes::node_geo_dual_mesh_cc::node_geo_exec(), blender::nodes::node_geo_merge_by_distance_cc::node_geo_exec(), blender::nodes::node_geo_mesh_subdivide_cc::node_geo_exec(), blender::nodes::node_geo_subdivision_surface_cc::node_geo_exec(), blender::nodes::node_geo_triangulate_cc::node_geo_exec(), blender::nodes::node_geo_volume_to_mesh_cc::node_geo_exec(), blender::io::alembic::AbcMeshReader::read_geometry(), blender::io::alembic::AbcSubDReader::read_geometry(), blender::io::usd::USDMeshReader::read_geometry(), blender::io::usd::USDShapeReader::read_geometry(), and blender::geometry::separate_geometry().
| void blender::bke::GeometrySet::replace_pointcloud | ( | PointCloud * | pointcloud, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Clear the existing point cloud and replace with the given one.
Definition at line 515 of file geometry_set.cc.
References get_component_for_write(), get_pointcloud(), remove(), and blender::bke::PointCloudComponent::replace().
Referenced by 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(), from_pointcloud(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_distribute_points_in_volume_cc::node_geo_exec(), blender::nodes::node_geo_merge_by_distance_cc::node_geo_exec(), blender::nodes::node_geo_distribute_points_on_faces_cc::point_distribution_calculate(), blender::io::alembic::AbcPointsReader::read_geometry(), blender::io::usd::USDPointInstancerReader::read_geometry(), blender::io::usd::USDPointsReader::read_geometry(), and blender::geometry::separate_geometry().
| void blender::bke::GeometrySet::replace_volume | ( | Volume * | volume, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Clear the existing volume and replace with the given one.
Definition at line 529 of file geometry_set.cc.
References get_component_for_write(), get_volume(), remove(), and blender::bke::VolumeComponent::replace().
Referenced by BKE_volume_data_update(), from_volume(), modify_geometry_set(), blender::nodes::node_geo_mesh_to_volume_cc::node_geo_exec(), and blender::nodes::node_geo_volume_cube_cc::node_geo_exec().
|
friend |
Definition at line 214 of file geometry_set.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_volume_num_grids(), GeometrySet(), get_curve_edit_hints(), get_curves(), get_grease_pencil(), get_instances(), get_mesh(), get_pointcloud(), get_volume(), has_instances(), i, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::bke::Instances::instances_num(), is_power_of_2_i(), and name.
|
friend |
Definition at line 445 of file BKE_geometry_set.hh.
References b, GeometrySet(), and name.
| std::string blender::bke::GeometrySet::name |
A user defined name for this geometry. It is not expected to be unique. Its main purpose is help debugging instance trees. It may eventually also be used when exporting instance trees or when creating separate objects from them.
Definition at line 156 of file BKE_geometry_set.hh.
Referenced by blender::bke::GeometrySet::GatheredAttributes::add(), blender::nodes::node_geo_string_to_curves_cc::create_curve_instances(), blender::bke::Instances::ensure_geometry_instances(), blender::io::obj::geometry_to_blender_geometry_set(), blender::nodes::geo_eval_log::GeometryInfoLog::GeometryInfoLog(), blender::bke::InstanceReference::name(), blender::nodes::node_geo_boolean_cc::node_geo_exec(), blender::nodes::node_geo_curves_to_grease_pencil_cc::node_geo_exec(), blender::nodes::node_geo_grease_pencil_to_curves_cc::node_geo_exec(), blender::nodes::node_geo_interpolate_curves_cc::node_geo_exec(), blender::nodes::node_geo_object_info_cc::node_geo_exec(), blender::nodes::node_geo_realize_instances_cc::node_geo_exec(), blender::nodes::node_geo_separate_components_cc::node_geo_exec(), blender::nodes::node_geo_set_geometry_name::node_geo_exec(), blender::nodes::node_geo_split_to_instances_cc::node_geo_exec(), operator<<, and operator==.