Blender
V3.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 > | curve_length_point_domain (const bke::CurvesGeometry &curves) |
static VArray< float > | construct_curve_parameter_varray (const bke::CurvesGeometry &curves, const IndexMask UNUSED(mask), const eAttrDomain domain) |
static VArray< float > | construct_curve_length_parameter_varray (const bke::CurvesGeometry &curves, const IndexMask UNUSED(mask), const eAttrDomain domain) |
static VArray< int > | construct_index_on_spline_varray (const bke::CurvesGeometry &curves, const IndexMask UNUSED(mask), const eAttrDomain domain) |
static void | node_geo_exec (GeoNodeExecParams params) |
|
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 33 of file node_geo_curve_spline_parameter.cc.
References curves, and blender::math::length().
Referenced by construct_curve_length_parameter_varray().
|
static |
Definition at line 171 of file node_geo_curve_spline_parameter.cc.
References accumulated_lengths_curve_domain(), ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, curve_length_point_domain(), and curves.
Referenced by blender::nodes::node_geo_curve_spline_parameter_cc::CurveLengthParameterFieldInput::get_varray_for_context().
|
static |
Definition at line 108 of file node_geo_curve_spline_parameter.cc.
References ATTR_DOMAIN_POINT, curve_length_point_domain(), curves, blender::threading::parallel_for(), and result.
Referenced by blender::nodes::node_geo_curve_spline_parameter_cc::CurveParameterFieldInput::get_varray_for_context().
|
static |
Definition at line 190 of file node_geo_curve_spline_parameter.cc.
References ATTR_DOMAIN_POINT, curves, blender::threading::parallel_for(), and result.
Referenced by blender::nodes::node_geo_curve_spline_parameter_cc::IndexOnSplineFieldInput::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 58 of file node_geo_curve_spline_parameter.cc.
References curves, blender::threading::parallel_for(), result, and types.
Referenced by construct_curve_length_parameter_varray(), and construct_curve_parameter_varray().
|
static |
Definition at line 11 of file node_geo_curve_spline_parameter.cc.
References usdtokens::b(), blender::nodes::SocketDeclaration::description(), and N_.
Referenced by register_node_type_geo_curve_spline_parameter().
|
static |
Definition at line 312 of file node_geo_curve_spline_parameter.cc.
References params.
Referenced by register_node_type_geo_curve_spline_parameter().