Blender V5.3
blender::bke::GeometrySet Struct Reference

#include <BKE_geometry_set.hh>

Classes

struct  GatheredAttributes

Public Types

using AttributeForeachCallback

Public Member Functions

template<typename Component>
Component & get_component_for_write ()
GeometryComponentPtr get_component_ptr (GeometryComponent::Type component_type) const
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

Friends

std::ostream & operator<< (std::ostream &stream, const GeometrySet &geometry_set)
bool operator== (const GeometrySet &a, const GeometrySet &b)

Geometry Set

 GeometrySet ()
 GeometrySet (const GeometrySet &other)
 GeometrySet (GeometrySet &&other)
 ~GeometrySet ()
GeometrySet & operator= (const GeometrySet &other)
GeometrySet & operator= (GeometrySet &&other)
GeometryComponent & get_component_for_write (GeometryComponent::Type component_type)
const GeometryComponent * get_component (GeometryComponent::Type component_type) const
bool has (const GeometryComponent::Type component_type) const
void remove (const GeometryComponent::Type component_type)
void keep_only (Span< GeometryComponent::Type > component_types)
void add (const GeometryComponent &component)
Vector< const GeometryComponent * > get_components () const
std::optional< Bounds< float3 > > compute_boundbox_without_instances (bool use_radius=true, bool use_subdiv=false) const
void clear ()
bool owns_direct_data () const
void ensure_owns_direct_data ()
void ensure_owns_all_data ()
void ensure_no_shared_components ()
void attribute_foreach (Span< GeometryComponent::Type > component_types, bool include_instances, AttributeForeachCallback callback) const
Vector< GeometryComponent::Type > gather_component_types (bool include_instances, bool ignore_empty) const
bool has_mesh () const
bool has_pointcloud () const
bool has_instances () const
bool has_volume () const
bool has_curves () const
bool has_realized_data () const
bool has_grease_pencil () const
bool is_empty () const
const Mesh * get_mesh () const
const PointCloud * get_pointcloud () const
const Volume * get_volume () const
const Curves * get_curves () const
const Instances * get_instances () const
const CurvesEditHints * get_curve_edit_hints () const
const GreasePencilEditHints * get_grease_pencil_edit_hints () const
const GizmoEditHints * get_gizmo_edit_hints () const
const GreasePencil * get_grease_pencil () const
Mesh * get_mesh_for_write ()
PointCloud * get_pointcloud_for_write ()
Volume * get_volume_for_write ()
Curves * get_curves_for_write ()
Instances * get_instances_for_write ()
CurvesEditHints * get_curve_edit_hints_for_write ()
GreasePencilEditHints * get_grease_pencil_edit_hints_for_write ()
GizmoEditHints * get_gizmo_edit_hints_for_write ()
GreasePencil * get_grease_pencil_for_write ()
void replace_mesh (Mesh *mesh, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
void replace_pointcloud (PointCloud *pointcloud, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
void replace_volume (Volume *volume, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
void replace_curves (Curves *curves, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
void replace_instances (Instances *instances, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
void replace_grease_pencil (GreasePencil *grease_pencil, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
bool has_bundle () const
const nodes::Bundle * bundle () const
const nodes::BundlePtr & bundle_ptr () const
nodes::BundlePtr & bundle_ptr ()
nodes::Bundle & bundle_for_write ()
void copy_bundle_from (const GeometrySet &other)
void merge_bundle_from (const GeometrySet &other)
void set_name (std::string name)
StringRefNull name () const
void count_memory (MemoryCounter &memory) const
static GeometrySet from_mesh (Mesh *mesh, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
static GeometrySet from_volume (Volume *volume, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
static GeometrySet from_pointcloud (PointCloud *pointcloud, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
static GeometrySet from_curves (Curves *curves, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
static GeometrySet from_instances (std::unique_ptr< Instances > instances)
static GeometrySet from_instances (Instances *instances, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
static GeometrySet from_grease_pencil (GreasePencil *grease_pencil, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)

Detailed Description

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 151 of file BKE_geometry_set.hh.

Member Typedef Documentation

◆ AttributeForeachCallback

Constructor & Destructor Documentation

◆ GeometrySet() [1/3]

◆ GeometrySet() [2/3]

blender::bke::GeometrySet::GeometrySet ( const GeometrySet & other)
default

References GeometrySet().

◆ GeometrySet() [3/3]

blender::bke::GeometrySet::GeometrySet ( GeometrySet && other)
default

References GeometrySet().

◆ ~GeometrySet()

blender::bke::GeometrySet::~GeometrySet ( )
default

Member Function Documentation

◆ add()

◆ attribute_foreach()

◆ bundle()

◆ bundle_for_write()

◆ bundle_ptr() [1/2]

nodes::BundlePtr & blender::bke::GeometrySet::bundle_ptr ( )

Definition at line 774 of file geometry_set.cc.

◆ bundle_ptr() [2/2]

const nodes::BundlePtr & blender::bke::GeometrySet::bundle_ptr ( ) const

◆ clear()

◆ compute_boundbox_without_instances()

std::optional< Bounds< float3 > > blender::bke::GeometrySet::compute_boundbox_without_instances ( bool use_radius = true,
bool use_subdiv = false ) const

◆ copy_bundle_from()

◆ count_memory()

◆ ensure_no_shared_components()

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 306 of file geometry_set.cc.

References get_component_for_write(), and blender::IndexRange::IndexRange().

◆ ensure_owns_all_data()

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 286 of file geometry_set.cc.

References ensure_owns_direct_data(), and get_instances_for_write().

◆ ensure_owns_direct_data()

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 272 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::mesh_create_eval_final(), blender::bke::mesh_create_eval_no_deform(), blender::bke::mesh_create_eval_no_deform_render(), blender::nodes::node_geo_instance_on_points_cc::node_geo_exec(), and blender::nodes::node_geo_proximity_cc::node_geo_exec().

◆ from_curves()

◆ from_grease_pencil()

GeometrySet blender::bke::GeometrySet::from_grease_pencil ( GreasePencil * grease_pencil,
GeometryOwnershipType ownership = GeometryOwnershipType::Owned )
static

Create a new geometry set that only contains the given Grease Pencil data.

Definition at line 469 of file geometry_set.cc.

References GeometrySet(), and replace_grease_pencil().

Referenced by blender::BKE_object_eval_grease_pencil(), blender::ed::geometry::get_original_geometry_eval_copy(), and blender::ed::spreadsheet::root_display_data_get().

◆ from_instances() [1/2]

GeometrySet blender::bke::GeometrySet::from_instances ( Instances * instances,
GeometryOwnershipType ownership = GeometryOwnershipType::Owned )
static

Definition at line 455 of file geometry_set.cc.

References GeometrySet(), and replace_instances().

◆ from_instances() [2/2]

◆ from_mesh()

◆ from_pointcloud()

◆ from_volume()

GeometrySet blender::bke::GeometrySet::from_volume ( Volume * volume,
GeometryOwnershipType ownership = GeometryOwnershipType::Owned )
static

Create a new geometry set that only contains the given volume.

Definition at line 434 of file geometry_set.cc.

References GeometrySet(), and replace_volume().

Referenced by blender::nodes::eval_log::ViewerNodeLog::main_geometry().

◆ gather_component_types()

Vector< GeometryComponent::Type > blender::bke::GeometrySet::gather_component_types ( bool include_instances,
bool ignore_empty ) const

◆ get_component() [1/2]

template<typename Component>
const Component * blender::bke::GeometrySet::get_component ( ) const
inline

◆ get_component() [2/2]

const GeometryComponent * blender::bke::GeometrySet::get_component ( GeometryComponent::Type component_type) const

◆ get_component_for_write() [1/2]

template<typename Component>
Component & blender::bke::GeometrySet::get_component_for_write ( )
inline

◆ get_component_for_write() [2/2]

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 119 of file geometry_set.cc.

References blender::bke::GeometryComponent::create(), and blender::ImplicitSharingPtr< T, IsStrong >::ensure_mutable_inplace().

Referenced by blender::ed::object::apply_grease_pencil_for_modifier(), blender::ed::object::apply_grease_pencil_for_modifier_all_keyframes(), blender::ed::sculpt_paint::trim::apply_join_operation(), blender::BKE_curves_data_update(), blender::BKE_object_eval_grease_pencil(), blender::ed::object::create_applied_mesh_for_modifier(), blender::nodes::node_geo_curve_fill_cc::curve_fill_calculate(), blender::bke::socket_value_visitor::RecursiveVisitor::edit_GeometrySet(), ensure_no_shared_components(), ensure_owns_direct_data(), blender::geometry::execute_realize_edit_data_tasks(), get_component_for_write(), get_curve_edit_hints_for_write(), get_gizmo_edit_hints_for_write(), get_grease_pencil_edit_hints_for_write(), 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::make_prim_finish_sculpt(), blender::bke::mesh_calc_modifiers(), blender::bke::mesh_create_eval_final(), blender::bke::mesh_create_eval_no_deform(), blender::bke::mesh_create_eval_no_deform_render(), blender::ed::object::modifier_apply_obdata(), blender::modify_geometry_set(), blender::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::nodes::node_geo_transfer_attributes_cc::node_geo_exec(), operator=(), blender::geometry::propagate_instances_to_keep(), blender::io::usd::USDParticleFieldReader::read_object_data(), blender::io::usd::USDPointInstancerReader::read_object_data(), blender::io::usd::USDPointsReader::read_object_data(), blender::io::alembic::AbcPointsReader::readObjectData(), blender::geometry::realize_instances(), replace_curves(), replace_grease_pencil(), replace_instances(), replace_mesh(), replace_pointcloud(), replace_volume(), blender::take_pointcloud_ownership_from_geometry_set(), and blender::take_volume_ownership_from_geometry_set().

◆ get_component_ptr()

GeometryComponentPtr blender::bke::GeometrySet::get_component_ptr ( GeometryComponent::Type component_type) const
inline

◆ get_components()

◆ get_curve_edit_hints()

const CurvesEditHints * blender::bke::GeometrySet::get_curve_edit_hints ( ) const

◆ get_curve_edit_hints_for_write()

CurvesEditHints * blender::bke::GeometrySet::get_curve_edit_hints_for_write ( )

◆ get_curves()

const Curves * blender::bke::GeometrySet::get_curves ( ) const

Returns a read-only curves data-block or null.

Definition at line 339 of file geometry_set.cc.

References blender::bke::CurveComponent::get(), get_component(), and blender::nullptr.

Referenced by blender::BKE_curves_data_update(), 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_attribute_domain_size_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_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_geometry_materials::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().

◆ get_curves_for_write()

Curves * blender::bke::GeometrySet::get_curves_for_write ( )

Returns a mutable curves data-block or null. No ownership is transferred.

Definition at line 580 of file geometry_set.cc.

References blender::bke::CurveComponent::get_for_write(), and blender::nullptr.

Referenced by blender::ed::curves::append_primitive_curve(), blender::BPy_GeometrySet_get_curves(), 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_join_fills_exec(), blender::ed::greasepencil::grease_pencil_move_to_layer_exec(), blender::ed::curves::join_objects_exec(), blender::geometry::mix_geometries(), blender::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_material_index_cc::node_geo_exec(), blender::nodes::node_geo_set_nurbs_order_cc::node_geo_exec(), blender::nodes::node_geo_set_nurbs_weight_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().

◆ get_gizmo_edit_hints()

const GizmoEditHints * blender::bke::GeometrySet::get_gizmo_edit_hints ( ) const

Returns read-only gizmo edit hints or null.

Definition at line 363 of file geometry_set.cc.

References get_component(), blender::bke::GeometryComponentEditData::gizmo_edit_hints_, and blender::nullptr.

◆ get_gizmo_edit_hints_for_write()

GizmoEditHints * blender::bke::GeometrySet::get_gizmo_edit_hints_for_write ( )

Returns mutable gizmo edit hints or null.

Definition at line 612 of file geometry_set.cc.

References get_component_for_write(), blender::bke::GeometryComponentEditData::gizmo_edit_hints_, and has().

◆ get_grease_pencil()

◆ get_grease_pencil_edit_hints()

const GreasePencilEditHints * blender::bke::GeometrySet::get_grease_pencil_edit_hints ( ) const

Returns read-only Grease Pencil edit hints or null.

Definition at line 357 of file geometry_set.cc.

References get_component(), blender::bke::GeometryComponentEditData::grease_pencil_edit_hints_, and blender::nullptr.

◆ get_grease_pencil_edit_hints_for_write()

GreasePencilEditHints * blender::bke::GeometrySet::get_grease_pencil_edit_hints_for_write ( )

Returns mutable Grease Pencil edit hints or null.

Definition at line 602 of file geometry_set.cc.

References get_component_for_write(), blender::bke::GeometryComponentEditData::grease_pencil_edit_hints_, and has().

◆ get_grease_pencil_for_write()

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 622 of file geometry_set.cc.

References blender::bke::GreasePencilComponent::get_for_write(), and blender::nullptr.

Referenced by blender::BKE_object_eval_grease_pencil(), blender::BPy_GeometrySet_get_grease_pencil(), 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::nodes::node_geo_store_named_attribute_cc::grease_pencil_add_missing_update_tags(), 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_nurbs_order_cc::node_geo_exec(), blender::nodes::node_geo_set_nurbs_weight_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::nodes::node_geo_transfer_attributes_cc::node_geo_exec(), blender::nodes::node_geo_remove_attribute_cc::remove_attributes_recursive(), and blender::geometry::separate_geometry().

◆ get_instances()

◆ get_instances_for_write()

◆ get_mesh()

const Mesh * blender::bke::GeometrySet::get_mesh ( ) const

Returns a read-only mesh or null.

Definition at line 315 of file geometry_set.cc.

References blender::bke::MeshComponent::get(), get_component(), and blender::nullptr.

Referenced by blender::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::bke::editbmesh_build_data(), blender::bke::editbmesh_calc_modifiers(), blender::geometry::gather_meshes_to_realize(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::make_duplis_geometry_set_impl(), blender::bke::mesh_build_data(), blender::bke::mesh_calc_modifiers(), blender::bke::modifier_modify_mesh_and_geometry_set(), blender::modify_geometry_set(), blender::modifyGeometry(), blender::nodes::node_geo_attribute_domain_size_cc::node_geo_exec(), blender::nodes::node_geo_bevel_cc::node_geo_exec(), blender::nodes::node_geo_boolean_cc::node_geo_exec(), blender::nodes::node_geo_distribute_points_on_faces_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_geometry_materials::node_geo_exec(), blender::nodes::node_geo_merge_by_distance_cc::node_geo_exec(), blender::nodes::node_geo_merge_points_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<<, replace_mesh(), blender::geometry::separate_geometry(), and blender::nodes::LazyFunctionForForeachGeometryElementZone::try_extract_element_geometries().

◆ get_mesh_for_write()

◆ get_pointcloud()

◆ get_pointcloud_for_write()

◆ get_volume()

const Volume * blender::bke::GeometrySet::get_volume ( ) const

◆ get_volume_for_write()

Volume * blender::bke::GeometrySet::get_volume_for_write ( )

◆ has() [1/2]

template<typename Component>
bool blender::bke::GeometrySet::has ( ) const
inline

◆ has() [2/2]

◆ has_bundle()

◆ has_component()

template<typename Component>
bool blender::bke::GeometrySet::has_component ( ) const
inline

◆ has_curves()

bool blender::bke::GeometrySet::has_curves ( ) const

◆ has_grease_pencil()

◆ has_instances()

◆ has_mesh()

◆ has_pointcloud()

◆ has_realized_data()

bool blender::bke::GeometrySet::has_realized_data ( ) const

◆ has_volume()

bool blender::bke::GeometrySet::has_volume ( ) const

Returns true when the geometry set has a volume component that has a volume.

Definition at line 388 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().

◆ hash()

uint64_t blender::bke::GeometrySet::hash ( ) const
inline

Definition at line 470 of file BKE_geometry_set.hh.

References blender::get_default_hash(), and blender::Span< T >::Span().

◆ is_empty()

bool blender::bke::GeometrySet::is_empty ( ) const

◆ keep_only()

void blender::bke::GeometrySet::keep_only ( Span< GeometryComponent::Type > component_types)

◆ merge_bundle_from()

void blender::bke::GeometrySet::merge_bundle_from ( const GeometrySet & other)

◆ name()

◆ operator=() [1/2]

GeometrySet & blender::bke::GeometrySet::operator= ( const GeometrySet & other)
default

References GeometrySet().

◆ operator=() [2/2]

GeometrySet & blender::bke::GeometrySet::operator= ( GeometrySet && other)
default

◆ owns_direct_data()

bool blender::bke::GeometrySet::owns_direct_data ( ) const

Definition at line 294 of file geometry_set.cc.

◆ remove() [1/2]

template<typename Component>
void blender::bke::GeometrySet::remove ( )
inline

◆ remove() [2/2]

◆ replace_curves()

◆ replace_grease_pencil()

◆ replace_instances()

◆ replace_mesh()

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 477 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(), blender::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(), blender::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_bevel_cc::node_geo_exec(), 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_merge_points_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().

◆ replace_pointcloud()

◆ replace_volume()

◆ set_name()

◆ operator<<

◆ operator==

bool operator== ( const GeometrySet & a,
const GeometrySet & b )
friend

Definition at line 463 of file BKE_geometry_set.hh.

References b, GeometrySet(), and blender::Span< T >::Span().


The documentation for this struct was generated from the following files: