|
Blender V5.3
|
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static Array< int > | compute_points_per_curve_by_group (const GroupedSpan< int > guides_by_group, const bke::CurvesGeometry &guide_curves) |
| static Array< std::unique_ptr< KDTreeNew< float3 > > > | build_kdtrees_for_root_positions (const GroupedSpan< int > guides_by_group, const Span< float3 > root_positions) |
| static void | find_neighbor_guides (const Span< float3 > positions, const Span< int > point_group_indices, const Span< std::unique_ptr< KDTreeNew< float3 > > > kdtrees, const GroupedSpan< int > guides_by_group, const int max_neighbor_count, MutableSpan< int > r_all_neighbor_indices, MutableSpan< float > r_all_neighbor_weights, MutableSpan< int > r_all_neighbor_counts) |
| static void | compute_point_counts_per_child (const bke::CurvesGeometry &guide_curves, const Span< int > point_group_indices, const Span< int > points_per_curve_by_group, const Span< int > all_neighbor_indices, const Span< float > all_neighbor_weights, const Span< int > all_neighbor_counts, const int max_neighbors, MutableSpan< int > r_points_per_child, MutableSpan< bool > r_use_direct_interpolation) |
| static void | parameterize_guide_curves (const bke::CurvesGeometry &guide_curves, Array< int > &r_parameterized_guide_offsets, Array< float > &r_parameterized_guide_lengths) |
| static void | interpolate_curve_shapes (bke::CurvesGeometry &child_curves, const bke::CurvesGeometry &guide_curves, const int max_neighbors, const Span< int > all_neighbor_indices, const Span< float > all_neighbor_weights, const Span< int > all_neighbor_counts, const VArray< float3 > &guides_up, const VArray< float3 > &points_up, const Span< float3 > point_positions, const OffsetIndices< int > parameterized_guide_offsets, const Span< float > parameterized_guide_lengths, const Span< bool > use_direct_interpolation_per_child) |
| static void | interpolate_curve_attributes (bke::CurvesGeometry &child_curves, const bke::CurvesGeometry &guide_curves, const AttributeAccessor &point_attributes, const AttributeFilter &attribute_filter, const int max_neighbors, const Span< int > all_neighbor_indices, const Span< float > all_neighbor_weights, const Span< int > all_neighbor_counts, const OffsetIndices< int > parameterized_guide_offsets, const Span< float > parameterized_guide_lengths, const Span< bool > use_direct_interpolation_per_child) |
| static void | store_output_attributes (bke::CurvesGeometry &child_curves, const std::optional< StringRef > &weight_attribute_id, const std::optional< StringRef > &index_attribute_id, const int max_neighbors, const Span< int > all_neighbor_counts, const Span< int > all_neighbor_indices, const Span< float > all_neighbor_weights) |
| static GeometrySet | generate_interpolated_curves (const Curves &guide_curves_id, const AttributeAccessor &point_attributes, const VArray< float3 > &guides_up, const VArray< float3 > &points_up, const Span< int > guide_group_ids, const VArray< int > &point_group_ids, const int max_neighbors, const AttributeFilter &attribute_filter, const std::optional< StringRef > &index_attribute_id, const std::optional< StringRef > &weight_attribute_id) |
| static void | node_geo_exec (GeoNodeExecParams params) |
| static void | node_register () |
|
static |
Build a kdtree for every guide group.
Definition at line 89 of file node_geo_interpolate_curves.cc.
References build_kdtrees_for_root_positions(), blender::offset_indices::GroupedSpan< T >::index_range(), blender::threading::parallel_for(), and blender::offset_indices::GroupedSpan< T >::size().
Referenced by build_kdtrees_for_root_positions().
|
static |
Compute how many points each generated curve will have. This is determined by looking at neighboring points.
Definition at line 219 of file node_geo_interpolate_curves.cc.
References compute_point_counts_per_child(), blender::MutableSpan< T >::index_range(), blender::threading::parallel_for(), and blender::bke::CurvesGeometry::points_by_curve().
Referenced by compute_point_counts_per_child().
|
static |
Checks if all curves within a group have the same number of points. If yes, a better interpolation algorithm can be used, that does not require resampling curves.
Definition at line 65 of file node_geo_interpolate_curves.cc.
References compute_points_per_curve_by_group(), blender::Span< T >::drop_front(), blender::offset_indices::GroupedSpan< T >::index_range(), blender::bke::CurvesGeometry::points_by_curve(), blender::offset_indices::GroupedSpan< T >::size(), and blender::offset_indices::OffsetIndices< T >::size().
Referenced by compute_points_per_curve_by_group().
|
static |
For every start point of newly generated curves, find the closest guide curves within the same group and compute a weight for each of them.
Definition at line 112 of file node_geo_interpolate_curves.cc.
References find_neighbor_guides(), blender::Span< T >::index_range(), and blender::threading::parallel_for().
Referenced by find_neighbor_guides().
|
static |
Definition at line 666 of file node_geo_interpolate_curves.cc.
References generate_interpolated_curves(), blender::Span< T >::index_range(), blender::threading::parallel_for(), and blender::Span< T >::size().
Referenced by generate_interpolated_curves(), and node_geo_exec().
|
static |
Propagate attributes from the guides and source points to the child curves.
Definition at line 429 of file node_geo_interpolate_curves.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeFilter::allow_skip(), blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), blender::BLI_assert(), blender::GVArrayCommon::common_info(), blender::bke::CurvesGeometry::curves_range(), blender::CommonVArrayInfo::data, blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, ELEM, blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), interpolate_curve_attributes(), blender::bke::AttributeIter::is_builtin, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, blender::threading::parallel_for(), blender::bke::CurvesGeometry::points_by_curve(), blender::CommonVArrayInfo::Single, blender::bke::GSpanAttributeWriter::span, blender::bke::String, T, blender::bke::attribute_math::to_static_type(), blender::CommonVArrayInfo::type, blender::GVArrayCommon::type(), blender::GMutableSpan::typed(), and blender::GSpan::typed().
Referenced by interpolate_curve_attributes().
|
static |
Initialize child curve positions by interpolating between guide curves.
Definition at line 298 of file node_geo_interpolate_curves.cc.
References blender::bke::CurvesGeometry::curves_range(), interpolate_curve_shapes(), blender::threading::parallel_for(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions(), and blender::bke::CurvesGeometry::positions_for_write().
Referenced by interpolate_curve_shapes().
|
static |
Definition at line 23 of file node_geo_interpolate_curves.cc.
References b, blender::nodes::SocketDeclaration::description, and node_declare().
Referenced by node_declare(), and node_register().
|
static |
Definition at line 801 of file node_geo_interpolate_curves.cc.
References blender::bke::GeometrySet::add(), blender::fn::FieldEvaluator::add(), blender::bke::GeometryComponent::attribute_domain_size(), blender::bke::GeometryComponent::attributes(), blender::bke::GeometrySet::copy_bundle_from(), blender::fn::FieldEvaluator::evaluate(), blender::nodes::GeoNodeExecParams::extract_input(), blender::nodes::FieldOperation::from(), generate_interpolated_curves(), blender::nodes::GeoNodeExecParams::get_attribute_filter(), blender::bke::GeometrySet::get_component(), blender::bke::GeometrySet::get_curves(), blender::fn::FieldEvaluator::get_evaluated(), blender::nodes::GeoNodeExecParams::get_output_anonymous_attribute_id_if_needed(), blender::bke::GeometrySet::has_curves(), blender::bke::GeometryComponent::is_empty(), blender::fn::multi_function::registry::lookup(), blender::bke::GeometrySet::name(), node_geo_exec(), blender::nodes::GeometryComponentEditData::remember_deformed_positions_if_necessary(), blender::nodes::GeoNodeExecParams::set_default_remaining_outputs(), blender::bke::GeometrySet::set_name(), and blender::nodes::GeoNodeExecParams::set_output().
Referenced by node_geo_exec(), and node_register().
|
static |
Definition at line 884 of file node_geo_interpolate_curves.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::enum_name_legacy, GEO_NODE_INTERPOLATE_CURVES, blender::geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::nclass, NODE_CLASS_GEOMETRY, node_declare(), node_geo_exec(), node_register(), blender::bke::node_register_type(), blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
Referenced by node_register().
|
static |
Prepares parameterized guide curves so that they can be used efficiently during interpolation.
Definition at line 266 of file node_geo_interpolate_curves.cc.
References blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::threading::parallel_for(), parameterize_guide_curves(), blender::bke::CurvesGeometry::points_by_curve(), and blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize().
Referenced by parameterize_guide_curves().
|
static |
Definition at line 609 of file node_geo_interpolate_curves.cc.
References blender::bke::CurvesGeometry::attributes_for_write(), blender::bke::CurvesGeometry::curves_range(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::threading::parallel_for(), and store_output_attributes().
Referenced by store_output_attributes().