|
Blender V5.3
|
Classes | |
| class | CurveParameterFieldInput |
| class | CurveLengthParameterFieldInput |
| class | IndexOnSplineFieldInput |
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static Array< float > | accumulated_lengths_curve_domain (const bke::CurvesGeometry &curves) |
| static Array< float > | calculate_curve_parameters (const bke::CurvesGeometry &curves) |
| static Array< float > | calculate_point_lengths (const bke::CurvesGeometry &curves, const FunctionRef< void(MutableSpan< float >, float)> postprocess_lengths_for_curve) |
| static void | convert_lengths_to_factors (MutableSpan< float > lengths, const float total_curve_length) |
| static Array< float > | calculate_point_parameters (const bke::CurvesGeometry &curves) |
| static void | node_geo_exec (GeoNodeExecParams params) |
| static void | node_register () |
|
static |
For lengths on the curve domain, a basic interpolation from the point domain would be useless, since the average parameter for each curve would just be 0.5, or close to it. Instead, the value for each curve is defined as the portion of the total length of all curves at its start.
Definition at line 36 of file node_geo_curve_spline_parameter.cc.
References accumulated_lengths_curve_domain(), and length().
Referenced by accumulated_lengths_curve_domain(), calculate_curve_parameters(), and blender::nodes::node_geo_curve_spline_parameter_cc::CurveLengthParameterFieldInput::get_varray_for_context().
|
static |
Definition at line 51 of file node_geo_curve_spline_parameter.cc.
References accumulated_lengths_curve_domain(), calculate_curve_parameters(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Array< T, InlineBufferCapacity, Allocator >::last(), and blender::Array< T, InlineBufferCapacity, Allocator >::size().
Referenced by calculate_curve_parameters(), and blender::nodes::node_geo_curve_spline_parameter_cc::CurveParameterFieldInput::get_varray_for_context().
|
static |
Return the length of each control point along each curve, starting at zero for the first point. Importantly, this is different than the length at each evaluated point. The implementation is different for every curve type:
Definition at line 86 of file node_geo_curve_spline_parameter.cc.
References calculate_point_lengths(), blender::threading::parallel_for(), and blender::result.
Referenced by calculate_point_lengths(), calculate_point_parameters(), and blender::nodes::node_geo_curve_spline_parameter_cc::CurveLengthParameterFieldInput::get_varray_for_context().
|
static |
Definition at line 173 of file node_geo_curve_spline_parameter.cc.
References calculate_point_lengths(), calculate_point_parameters(), and convert_lengths_to_factors().
Referenced by calculate_point_parameters(), and blender::nodes::node_geo_curve_spline_parameter_cc::CurveParameterFieldInput::get_varray_for_context().
|
static |
Definition at line 151 of file node_geo_curve_spline_parameter.cc.
References convert_lengths_to_factors(), blender::MutableSpan< T >::drop_front(), blender::MutableSpan< T >::index_range(), and blender::MutableSpan< T >::size().
Referenced by calculate_point_parameters(), and convert_lengths_to_factors().
|
static |
Definition at line 14 of file node_geo_curve_spline_parameter.cc.
References b, blender::nodes::SocketDeclaration::description, and node_declare().
Referenced by node_declare(), and node_register().
|
static |
Definition at line 271 of file node_geo_curve_spline_parameter.cc.
References blender::nodes::Field< T >::from_input(), node_geo_exec(), and blender::nodes::GeoNodeExecParams::set_output().
Referenced by node_geo_exec(), and node_register().
|
static |
Definition at line 278 of file node_geo_curve_spline_parameter.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::enum_name_legacy, GEO_NODE_CURVE_SPLINE_PARAMETER, blender::geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::nclass, NODE_CLASS_INPUT, 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().