|
Blender V4.3
|
Classes | |
| class | CurveLengthParameterFieldInput |
| class | CurveParameterFieldInput |
| 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 31 of file node_geo_curve_spline_parameter.cc.
References length().
Referenced by calculate_curve_parameters(), and blender::nodes::node_geo_curve_spline_parameter_cc::CurveLengthParameterFieldInput::get_varray_for_context().
|
static |
Definition at line 46 of file node_geo_curve_spline_parameter.cc.
References accumulated_lengths_curve_domain().
Referenced by 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 81 of file node_geo_curve_spline_parameter.cc.
References blender::threading::parallel_for(), and result.
Referenced by calculate_point_parameters(), and blender::nodes::node_geo_curve_spline_parameter_cc::CurveLengthParameterFieldInput::get_varray_for_context().
|
static |
Definition at line 168 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 146 of file node_geo_curve_spline_parameter.cc.
References convert_lengths_to_factors().
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, and blender::nodes::SocketDeclaration::description.
Referenced by node_register().
|
static |
Definition at line 283 of file node_geo_curve_spline_parameter.cc.
References node_geo_exec(), and params.
Referenced by node_geo_exec(), and node_register().
|
static |
Definition at line 293 of file node_geo_curve_spline_parameter.cc.
References blender::bke::bNodeType::declare, geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, NODE_CLASS_INPUT, node_declare(), node_geo_exec(), node_register(), and blender::bke::node_register_type().
Referenced by node_register().