|
Blender V5.3
|
Classes | |
| struct | IndexAttributes |
Functions | |
| NODE_STORAGE_FUNCS (NodeGeometryDuplicateElements) | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static void | node_init (bNodeTree *, bNode *node) |
| static void | node_layout (ui::Layout &layout, bContext *, PointerRNA *ptr) |
| static void | node_rna (StructRNA *srna) |
| static void | node_register () |
Utility Functions | |
| static OffsetIndices< int > | accumulate_counts_to_offsets (const IndexMask &selection, const VArray< int > &counts, Array< int > &r_offset_data) |
| static void | copy_hashed_ids (const Span< int > src, const int hash, MutableSpan< int > dst) |
| static void | threaded_id_offset_copy (const OffsetIndices< int > offsets, const Span< int > src, MutableSpan< int > all_dst) |
| static void | create_duplicate_index_attribute (bke::MutableAttributeAccessor attributes, const AttrDomain output_domain, const IndexMask &selection, const IndexAttributes &attribute_outputs, const OffsetIndices< int > offsets) |
| static void | copy_stable_id_point (const OffsetIndices< int > offsets, const bke::AttributeAccessor src_attributes, bke::MutableAttributeAccessor dst_attributes) |
Duplicate Curves | |
| static void | copy_curve_attributes_without_id (const bke::CurvesGeometry &src_curves, const IndexMask &selection, const OffsetIndices< int > curve_offsets, const AttributeFilter &attribute_filter, bke::CurvesGeometry &dst_curves) |
| static void | copy_stable_id_curves (const bke::CurvesGeometry &src_curves, const IndexMask &selection, const OffsetIndices< int > offsets, bke::CurvesGeometry &dst_curves) |
| static bke::CurvesGeometry | duplicate_curves_CurveGeometry (const bke::CurvesGeometry &curves, const FieldContext &field_context, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
| static void | duplicate_curves (GeometrySet &geometry_set, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
Duplicate Faces | |
| static void | copy_face_attributes_without_id (const Span< int > edge_mapping, const Span< int > vert_mapping, const Span< int > loop_mapping, const OffsetIndices< int > offsets, const IndexMask &selection, const AttributeFilter &attribute_filter, const bke::AttributeAccessor src_attributes, bke::MutableAttributeAccessor dst_attributes) |
| static void | copy_stable_id_faces (const Mesh &mesh, const IndexMask &selection, const OffsetIndices< int > face_offsets, const Span< int > vert_mapping, const bke::AttributeAccessor src_attributes, bke::MutableAttributeAccessor dst_attributes) |
| static void | duplicate_faces (GeometrySet &geometry_set, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
Duplicate Edges | |
| static void | copy_edge_attributes_without_id (const Span< int > point_mapping, const OffsetIndices< int > offsets, const IndexMask &selection, const AttributeFilter &attribute_filter, const bke::AttributeAccessor src_attributes, bke::MutableAttributeAccessor dst_attributes) |
| static void | copy_attributes_from_other_domains (const bke::AttributeAccessor src_attributes, const AttrDomain domain, const Span< AttrDomain > copied_domains, const OffsetIndices< int > offsets, const IndexMask &selection, const AttributeFilter &attribute_filter, bke::MutableAttributeAccessor dst_attributes) |
| static void | copy_stable_id_edges (const Mesh &mesh, const IndexMask &selection, const OffsetIndices< int > offsets, const bke::AttributeAccessor src_attributes, bke::MutableAttributeAccessor dst_attributes) |
| static void | duplicate_edges (GeometrySet &geometry_set, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
Duplicate Points (Curves) | |
| static bke::CurvesGeometry | duplicate_points_CurvesGeometry (const bke::CurvesGeometry &src_curves, const FieldContext &field_context, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
| static void | duplicate_points_curve (GeometrySet &geometry_set, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
Duplicate Points (Grease Pencil) | |
| static void | duplicate_points_grease_pencil (GeometrySet &geometry_set, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
Duplicate Points (Mesh) | |
| static void | duplicate_points_mesh (GeometrySet &geometry_set, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
Duplicate Points (Point Cloud) | |
| static void | duplicate_points_pointcloud (GeometrySet &geometry_set, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
Duplicate Points | |
| static void | duplicate_points (GeometrySet &geometry_set, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
Duplicate Layers | |
| static void | duplicate_layers (GeometrySet &geometry_set, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
Duplicate Instances | |
| static void | duplicate_instances (GeometrySet &geometry_set, const Field< int > &count_field, const Field< bool > &selection_field, const IndexAttributes &attribute_outputs, const AttributeFilter &attribute_filter) |
Entry Point | |
| static void | node_geo_exec (GeoNodeExecParams params) |
|
static |
Definition at line 79 of file node_geo_duplicate_elements.cc.
References accumulate_counts_to_offsets(), blender::offset_indices::accumulate_counts_to_offsets(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::offset_indices::fill_constant_group_size(), blender::array_utils::gather(), blender::VArrayCommon< T >::get_if_single(), blender::exec_mode::grain_size(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), and blender::index_mask::IndexMask::size().
Referenced by accumulate_counts_to_offsets(), duplicate_edges(), duplicate_instances(), duplicate_layers(), duplicate_points_CurvesGeometry(), duplicate_points_mesh(), and duplicate_points_pointcloud().
|
static |
Copy attributes from domains that are not represented by the output topology to the domain of the duplicated elements. The source attributes are adapted before gathering, so their values are interpolated in the same way as for field evaluation.
Definition at line 673 of file node_geo_duplicate_elements.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeFilter::allow_skip(), blender::GVArrayCommon::common_info(), blender::bke::AttributeAccessor::contains(), blender::Span< T >::contains(), copy_attributes_from_other_domains(), blender::CommonVArrayInfo::data, blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, ELEM, blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::attribute_math::gather_to_groups(), blender::bke::AttributeIter::get(), blender::bke::subdiv::init(), blender::bke::AttributeIter::is_builtin, blender::bke::mesh::is_uv_map(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, blender::CommonVArrayInfo::Single, blender::bke::GSpanAttributeWriter::span, blender::bke::String, blender::CommonVArrayInfo::type, blender::GVArrayCommon::type(), and blender::bke::GAttributeReader::varray.
Referenced by copy_attributes_from_other_domains(), and duplicate_points_mesh().
|
static |
Copies the attributes for curve duplicates. If copying the curve domain, the attributes are copied with an offset fill, otherwise a mapping is used.
Definition at line 178 of file node_geo_duplicate_elements.cc.
References attribute, blender::bke::attribute_filter_with_skip_ref(), blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), BLI_assert_unreachable, copy_curve_attributes_without_id(), blender::bke::attribute_math::gather_to_groups(), blender::exec_mode::grain_size(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::retrieve_attributes_for_transfer(), T, and blender::bke::attribute_math::to_static_type().
Referenced by copy_curve_attributes_without_id(), and duplicate_curves_CurveGeometry().
|
static |
Copies the attributes for edge duplicates. If copying the edge domain, the attributes are copied with an offset fill, for point domain a mapping is used.
Definition at line 639 of file node_geo_duplicate_elements.cc.
References attribute, blender::bke::attribute_filter_with_skip_ref(), BLI_assert_unreachable, copy_edge_attributes_without_id(), blender::bke::Edge, blender::bke::attribute_math::gather(), blender::bke::attribute_math::gather_to_groups(), blender::bke::Point, and blender::bke::retrieve_attributes_for_transfer().
Referenced by copy_edge_attributes_without_id().
|
static |
Copies the attributes for face duplicates. If copying the face domain, the attributes are copied with an offset fill, otherwise a mapping is used.
Definition at line 398 of file node_geo_duplicate_elements.cc.
References attribute, blender::bke::attribute_filter_with_skip_ref(), BLI_assert_unreachable, copy_face_attributes_without_id(), blender::bke::Corner, blender::bke::Edge, blender::bke::Face, blender::bke::attribute_math::gather(), blender::bke::attribute_math::gather_to_groups(), blender::bke::Point, and blender::bke::retrieve_attributes_for_transfer().
Referenced by copy_face_attributes_without_id(), and duplicate_faces().
|
static |
Definition at line 97 of file node_geo_duplicate_elements.cc.
References copy_hashed_ids(), blender::noise::hash(), hash, and blender::Span< T >::index_range().
Referenced by copy_hashed_ids(), and copy_stable_id_curves().
|
static |
Copy the stable ids to the first duplicate and create new ids based on a hash of the original id and the duplicate number. In the curve case, copy the entire curve's points to the destination, then loop over the remaining ones point by point, hashing their ids to the new ids.
Definition at line 226 of file node_geo_duplicate_elements.cc.
References blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), blender::MutableSpan< T >::copy_from(), copy_hashed_ids(), copy_stable_id_curves(), blender::bke::GAttributeReader::domain, blender::IndexRange::drop_front(), blender::bke::SpanAttributeWriter< T >::finish(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::IndexRange::index_range(), blender::CPPType::is(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::CurvesGeometry::points_by_curve(), blender::blender::Span< T >::slice(), blender::MutableSpan< T >::slice(), blender::bke::SpanAttributeWriter< T >::span, blender::GVArrayCommon::type(), blender::GVArray::typed(), and blender::bke::GAttributeReader::varray.
Referenced by copy_stable_id_curves(), and duplicate_curves_CurveGeometry().
|
static |
Copy the stable ids to the first duplicate and create new ids based on a hash of the original id and the duplicate number. This function is used for points when duplicating the edge domain.
Definition at line 735 of file node_geo_duplicate_elements.cc.
References copy_stable_id_edges(), blender::bke::GAttributeReader::domain, blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::noise::hash(), blender::CPPType::is(), blender::IndexRange::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::IndexRange::size(), blender::bke::SpanAttributeWriter< T >::span, blender::IndexRange::start(), blender::GVArrayCommon::type(), blender::GVArray::typed(), and blender::bke::GAttributeReader::varray.
Referenced by copy_stable_id_edges().
|
static |
Copy the stable ids to the first duplicate and create new ids based on a hash of the original id and the duplicate number. This function is used for points when duplicating the face domain.
This function could be threaded in the future, but since it is only 1 attribute and the face->edge->vert mapping would mean creating a 1/1 mapping to allow for it, is it worth it?
Definition at line 446 of file node_geo_duplicate_elements.cc.
References copy_stable_id_faces(), blender::bke::GAttributeReader::domain, blender::bke::SpanAttributeWriter< T >::finish(), blender::noise::hash(), blender::index_mask::IndexMask::index_range(), blender::CPPType::is(), blender::IndexRange::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::IndexRange::size(), blender::bke::SpanAttributeWriter< T >::span, blender::GVArrayCommon::type(), blender::GVArray::typed(), and blender::bke::GAttributeReader::varray.
Referenced by copy_stable_id_faces(), and duplicate_faces().
|
static |
Copy the stable ids to the first duplicate and create new ids based on a hash of the original id and the duplicate number. This function is used for the point domain elements.
Definition at line 142 of file node_geo_duplicate_elements.cc.
References copy_stable_id_point(), blender::bke::GAttributeReader::domain, ELEM, blender::bke::SpanAttributeWriter< T >::finish(), blender::CPPType::is(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::SpanAttributeWriter< T >::span, threaded_id_offset_copy(), blender::GVArrayCommon::type(), blender::GVArray::typed(), and blender::bke::GAttributeReader::varray.
Referenced by copy_stable_id_point(), duplicate_points_mesh(), and duplicate_points_pointcloud().
|
static |
Create the copy indices for the duplication domain.
Definition at line 124 of file node_geo_duplicate_elements.cc.
References create_duplicate_index_attribute(), blender::nodes::node_geo_duplicate_elements_cc::IndexAttributes::duplicate_index, blender::array_utils::fill_index_range(), blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::index_range(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by create_duplicate_index_attribute(), duplicate_curves_CurveGeometry(), duplicate_faces(), duplicate_instances(), duplicate_layers(), duplicate_points_mesh(), and duplicate_points_pointcloud().
|
static |
Definition at line 341 of file node_geo_duplicate_elements.cc.
References blender::bke::GeometryComponent::Curve, blender::bke::curves_copy_parameters(), blender::bke::curves_new_nomain(), duplicate_curves(), duplicate_curves_CurveGeometry(), blender::bke::GeometryComponent::Edit, blender::bke::GeometrySet::get_curves(), blender::bke::GeometrySet::get_grease_pencil_for_write(), blender::bke::GeometryComponent::GreasePencil, blender::bke::GeometrySet::keep_only(), blender::threading::parallel_for(), blender::nodes::GeometryComponentEditData::remember_deformed_positions_if_necessary(), and blender::bke::GeometrySet::replace_curves().
Referenced by duplicate_curves(), and node_geo_exec().
|
static |
Definition at line 270 of file node_geo_duplicate_elements.cc.
References blender::fn::FieldEvaluator::add(), blender::bke::CurvesGeometry::attributes_for_write(), copy_curve_attributes_without_id(), copy_stable_id_curves(), create_duplicate_index_attribute(), duplicate_curves_CurveGeometry(), blender::nodes::node_geo_duplicate_elements_cc::IndexAttributes::duplicate_index, blender::fn::FieldEvaluator::evaluate(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::exec_mode::grain_size(), blender::Array< T, InlineBufferCapacity, Allocator >::last(), blender::MutableSpan< T >::last(), blender::bke::CurvesGeometry::offsets_for_write(), blender::fn::FieldEvaluator::set_selection(), blender::IndexRange::size(), blender::offset_indices::OffsetIndices< T >::size(), blender::MutableSpan< T >::slice(), and blender::bke::CurvesGeometry::update_curve_types().
Referenced by duplicate_curves(), and duplicate_curves_CurveGeometry().
|
static |
Definition at line 781 of file node_geo_duplicate_elements.cc.
References accumulate_counts_to_offsets(), blender::fn::FieldEvaluator::add(), blender::BKE_mesh_copy_parameters_for_eval(), blender::BKE_mesh_new_nomain(), blender::bke::GeometrySet::clear(), duplicate_edges(), blender::fn::FieldEvaluator::evaluate(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::bke::GeometrySet::get_mesh(), blender::exec_mode::grain_size(), blender::bke::GeometrySet::has_mesh(), blender::threading::parallel_for(), blender::fn::FieldEvaluator::set_selection(), blender::IndexRange::size(), blender::Span< T >::size(), blender::IndexRange::start(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by duplicate_edges(), and node_geo_exec().
|
static |
Definition at line 496 of file node_geo_duplicate_elements.cc.
References blender::fn::FieldEvaluator::add(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_mesh_copy_parameters_for_eval(), blender::BKE_mesh_new_nomain(), blender::CD_CONSTRUCT, blender::CD_ORIGINDEX, blender::bke::GeometrySet::clear(), copy_face_attributes_without_id(), copy_stable_id_faces(), create_duplicate_index_attribute(), blender::CustomData_add_layer(), blender::CustomData_get_layer(), blender::CustomData_has_layer(), duplicate_faces(), blender::nodes::node_geo_duplicate_elements_cc::IndexAttributes::duplicate_index, blender::Mesh::edge_data, blender::Mesh::edges_num, blender::bke::GeometryComponent::Edit, blender::fn::FieldEvaluator::evaluate(), blender::Mesh::face_data, blender::bke::ccg::face_range(), blender::Mesh::faces_num, blender::array_utils::fill_index_range(), blender::index_mask::IndexMask::foreach_index_optimized(), blender::array_utils::gather(), blender::bke::attribute_math::gather_to_groups(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::bke::GeometrySet::get_mesh(), blender::bke::GeometrySet::has_mesh(), blender::IndexRange::index_range(), blender::bke::GeometrySet::keep_only(), blender::bke::GeometryComponent::Mesh, blender::bke::GeometrySet::replace_mesh(), blender::fn::FieldEvaluator::set_selection(), blender::index_mask::IndexMask::size(), blender::MutableSpan< T >::size(), blender::offset_indices::OffsetIndices< T >::size(), blender::Mesh::vert_data, and blender::Mesh::verts_num.
Referenced by duplicate_faces(), and node_geo_exec().
|
static |
Definition at line 1271 of file node_geo_duplicate_elements.cc.
References accumulate_counts_to_offsets(), blender::fn::FieldEvaluator::add(), blender::bke::attribute_filter_with_skip_ref(), blender::bke::Instances::attributes(), blender::bke::GeometrySet::clear(), create_duplicate_index_attribute(), blender::nodes::node_geo_duplicate_elements_cc::IndexAttributes::duplicate_index, duplicate_instances(), blender::fn::FieldEvaluator::evaluate(), blender::MutableSpan< T >::fill(), blender::index_mask::IndexMask::foreach_index(), blender::nodes::GeometrySet::from_instances(), blender::bke::gather_attributes_to_groups(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::bke::GeometrySet::get_instances(), blender::bke::GeometrySet::has_instances(), blender::bke::Instances::instances_num(), blender::IndexRange::is_empty(), blender::bke::Instances::reference_handles(), blender::bke::Instances::references(), blender::fn::FieldEvaluator::set_selection(), blender::MutableSpan< T >::slice(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by duplicate_instances(), and node_geo_exec().
|
static |
Definition at line 1191 of file node_geo_duplicate_elements.cc.
References accumulate_counts_to_offsets(), blender::fn::FieldEvaluator::add(), blender::BKE_grease_pencil_copy_layer_parameters(), blender::BKE_grease_pencil_copy_parameters(), blender::BKE_grease_pencil_new_nomain(), blender::bke::GeometrySet::clear(), create_duplicate_index_attribute(), blender::nodes::node_geo_duplicate_elements_cc::IndexAttributes::duplicate_index, duplicate_layers(), blender::bke::GeometryComponent::Edit, blender::fn::FieldEvaluator::evaluate(), blender::index_mask::IndexMask::foreach_index(), blender::bke::gather_attributes_to_groups(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::bke::GeometrySet::get_grease_pencil(), blender::bke::GeometryComponent::GreasePencil, blender::bke::GeometrySet::has_grease_pencil(), blender::IndexRange::is_empty(), blender::bke::GeometrySet::keep_only(), blender::ActionLayer::name, blender::nodes::GeometryComponentEditData::remember_deformed_positions_if_necessary(), blender::bke::GeometrySet::replace_grease_pencil(), blender::fn::FieldEvaluator::set_selection(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by duplicate_layers(), and node_geo_exec().
|
static |
Definition at line 1142 of file node_geo_duplicate_elements.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::GeometryComponent::Curve, duplicate_points(), duplicate_points_curve(), duplicate_points_grease_pencil(), duplicate_points_mesh(), duplicate_points_pointcloud(), blender::bke::GeometryComponent::Edit, blender::bke::GeometrySet::gather_component_types(), blender::bke::GeometryComponent::GreasePencil, blender::bke::GeometrySet::has_curves(), blender::bke::GeometrySet::has_grease_pencil(), blender::bke::GeometrySet::has_mesh(), blender::bke::GeometrySet::has_pointcloud(), blender::bke::GeometrySet::keep_only(), blender::bke::GeometryComponent::Mesh, and blender::bke::GeometryComponent::PointCloud.
Referenced by duplicate_points(), and node_geo_exec().
|
static |
Definition at line 961 of file node_geo_duplicate_elements.cc.
References blender::bke::curves_copy_parameters(), blender::bke::curves_new_nomain(), duplicate_points_curve(), duplicate_points_CurvesGeometry(), blender::bke::GeometrySet::get_curves(), and blender::bke::GeometrySet::replace_curves().
Referenced by duplicate_points(), and duplicate_points_curve().
|
static |
Definition at line 892 of file node_geo_duplicate_elements.cc.
References accumulate_counts_to_offsets(), blender::fn::FieldEvaluator::add(), attribute, blender::bke::attribute_filter_with_skip_ref(), blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), duplicate_points_CurvesGeometry(), blender::fn::FieldEvaluator::evaluate(), blender::offset_indices::fill_constant_group_size(), blender::bke::gather_attributes_to_groups(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::exec_mode::grain_size(), blender::bke::CurvesGeometry::is_empty(), blender::bke::CurvesGeometry::offsets_for_write(), blender::bke::CurvesGeometry::point_to_curve_map(), blender::bke::CurvesGeometry::points_num(), blender::bke::retrieve_attributes_for_transfer(), blender::fn::FieldEvaluator::set_selection(), T, blender::bke::attribute_math::to_static_type(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by duplicate_points_curve(), and duplicate_points_CurvesGeometry().
|
static |
Definition at line 989 of file node_geo_duplicate_elements.cc.
References duplicate_points_grease_pencil(), blender::bke::GeometrySet::get_grease_pencil_for_write(), and blender::threading::parallel_for().
Referenced by duplicate_points(), and duplicate_points_grease_pencil().
|
static |
Definition at line 1025 of file node_geo_duplicate_elements.cc.
References accumulate_counts_to_offsets(), blender::fn::FieldEvaluator::add(), blender::bke::attribute_filter_with_skip_ref(), blender::BKE_mesh_copy_parameters_for_eval(), blender::BKE_mesh_new_nomain(), blender::CD_CONSTRUCT, blender::CD_ORIGINDEX, copy_attributes_from_other_domains(), copy_stable_id_point(), create_duplicate_index_attribute(), blender::CustomData_add_layer(), blender::CustomData_get_layer(), blender::CustomData_has_layer(), blender::nodes::node_geo_duplicate_elements_cc::IndexAttributes::duplicate_index, duplicate_points_mesh(), blender::fn::FieldEvaluator::evaluate(), blender::bke::gather_attributes_to_groups(), blender::array_utils::gather_to_groups(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::bke::GeometrySet::get_mesh(), blender::bke::GeometrySet::replace_mesh(), blender::fn::FieldEvaluator::set_selection(), blender::offset_indices::OffsetIndices< T >::total_size(), blender::Mesh::vert_data, and blender::Mesh::verts_num.
Referenced by duplicate_points(), and duplicate_points_mesh().
|
static |
Definition at line 1094 of file node_geo_duplicate_elements.cc.
References accumulate_counts_to_offsets(), blender::fn::FieldEvaluator::add(), blender::bke::attribute_filter_with_skip_ref(), blender::BKE_pointcloud_new_nomain(), copy_stable_id_point(), create_duplicate_index_attribute(), blender::nodes::node_geo_duplicate_elements_cc::IndexAttributes::duplicate_index, duplicate_points_pointcloud(), blender::fn::FieldEvaluator::evaluate(), blender::bke::gather_attributes_to_groups(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::bke::GeometrySet::get_pointcloud(), blender::bke::GeometrySet::replace_pointcloud(), blender::fn::FieldEvaluator::set_selection(), blender::offset_indices::OffsetIndices< T >::total_size(), blender::PointCloud::totpoint, and blender::PointCloud::type.
Referenced by duplicate_points(), and duplicate_points_pointcloud().
|
static |
Definition at line 37 of file node_geo_duplicate_elements.cc.
References b, BLT_I18NCONTEXT_COUNTABLE, blender::nodes::SocketDeclaration::description, blender::nodes::SocketDeclaration::hide_value, min, and node_declare().
Referenced by node_declare(), and node_register().
|
static |
Definition at line 1343 of file node_geo_duplicate_elements.cc.
References BLI_assert_unreachable, duplicate_curves(), duplicate_edges(), duplicate_faces(), duplicate_instances(), duplicate_layers(), duplicate_points(), blender::nodes::GeoNodeExecParams::extract_input(), blender::geometry::foreach_real_geometry(), blender::nodes::FieldOperation::from(), blender::nodes::GeoNodeExecParams::get_attribute_filter(), blender::nodes::GeoNodeExecParams::get_output_anonymous_attribute_id_if_needed(), blender::bke::GeometrySet::is_empty(), blender::fn::multi_function::registry::lookup(), blender::nodes::GeoNodeExecParams::node(), node_geo_exec(), blender::nodes::GeoNodeExecParams::set_default_remaining_outputs(), blender::nodes::GeoNodeExecParams::set_output(), and storage.
Referenced by node_geo_exec(), and node_register().
|
static |
Definition at line 59 of file node_geo_duplicate_elements.cc.
References blender::data, node, and node_init().
Referenced by node_init(), and node_register().
|
static |
Definition at line 66 of file node_geo_duplicate_elements.cc.
References node_layout(), blender::ui::Layout::prop(), and UI_ITEM_NONE.
Referenced by node_layout(), and node_register().
|
static |
Definition at line 1428 of file node_geo_duplicate_elements.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons, blender::bke::bNodeType::enum_name_legacy, GEO_NODE_DUPLICATE_ELEMENTS, blender::geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::nclass, NODE_CLASS_GEOMETRY, blender::node_copy_standard_storage(), node_declare(), blender::node_free_standard_storage(), node_geo_exec(), node_init(), node_layout(), node_register(), blender::bke::node_register_type(), node_rna(), blender::bke::node_type_storage(), blender::bke::bNodeType::rna_ext, blender::ExtensionRNA::srna, blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
Referenced by node_register().
|
static |
Definition at line 1405 of file node_geo_duplicate_elements.cc.
References NOD_storage_enum_accessors, node_rna(), and blender::nodes::RNA_def_node_enum().
Referenced by node_register(), and node_rna().
| blender::nodes::node_geo_duplicate_elements_cc::NODE_STORAGE_FUNCS | ( | NodeGeometryDuplicateElements | ) |
References NODE_STORAGE_FUNCS().
Referenced by NODE_STORAGE_FUNCS().
|
static |
Definition at line 104 of file node_geo_duplicate_elements.cc.
References blender::BLI_assert(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::threading::parallel_for(), blender::MutableSpan< T >::size(), threaded_id_offset_copy(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by copy_stable_id_point(), and threaded_id_offset_copy().