Blender V5.0
blender::nodes::node_geo_instance_on_points_cc Namespace Reference

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void add_instances_from_component (bke::Instances &dst_component, const AttributeAccessor &src_attributes, const GeometrySet &instance, const fn::FieldContext &field_context, const GeoNodeExecParams &params, const bke::GeometrySet::GatheredAttributes &attributes_to_propagate)
static void node_geo_exec (GeoNodeExecParams params)
static void node_register ()

Function Documentation

◆ add_instances_from_component()

void blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component ( bke::Instances & dst_component,
const AttributeAccessor & src_attributes,
const GeometrySet & instance,
const fn::FieldContext & field_context,
const GeoNodeExecParams & params,
const bke::GeometrySet::GatheredAttributes & attributes_to_propagate )
static

Definition at line 46 of file node_geo_instance_on_points.cc.

References blender::bke::MutableAttributeAccessor::add(), blender::bke::Instances::add_reference(), blender::bke::Instances::attributes_for_write(), blender::bke::AttributeAccessor::contains(), blender::GSpan::data(), blender::bke::AttributeAccessor::domain_size(), ELEM, blender::bke::GSpanAttributeWriter::finish(), blender::index_mask::IndexMask::foreach_index(), blender::math::from_loc_rot_scale(), blender::array_utils::gather(), blender::bke::GeometrySet::get_instances(), blender::VArrayCommon< T >::get_internal_single(), blender::GVArrayCommon::get_internal_span(), blender::bke::GeometrySet::has_realized_data(), i, blender::index_mask::IndexMask::index_range(), blender::Span< T >::index_range(), indices, blender::nodes::Info, init(), init(), blender::bke::Instances::instances_num(), blender::index_mask::IndexMask::is_empty(), blender::VArrayCommon< T >::is_single(), blender::GVArrayCommon::is_span(), blender::bke::GeometrySet::GatheredAttributes::kinds, blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), mod_i(), mul_m4_m4_post(), blender::bke::GeometrySet::GatheredAttributes::names, params, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::bke::Instances::reference_handles_for_write(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::bke::Instances::resize(), blender::bke::GAttributeReader::sharing_info, blender::GVArrayCommon::size(), blender::IndexRange::size(), blender::Span< T >::size(), blender::GMutableSpan::slice(), MutableSpan< T >::slice(), blender::bke::GSpanAttributeWriter::span, TIP_, blender::bke::Instances::transforms_for_write(), and blender::bke::GAttributeReader::varray.

Referenced by node_geo_exec().

◆ node_declare()

void blender::nodes::node_geo_instance_on_points_cc::node_declare ( NodeDeclarationBuilder & b)
static

Definition at line 21 of file node_geo_instance_on_points.cc.

References b, NODE_DEFAULT_INPUT_ID_INDEX_FIELD, and PROP_XYZ.

Referenced by node_register().

◆ node_geo_exec()

◆ node_register()