Blender V5.0
blender::nodes::node_geo_curve_topology_points_of_curve_cc Namespace Reference

Classes

class  PointsOfCurveInput
class  CurvePointCountInput

Functions

static void node_declare (NodeDeclarationBuilder &b)
static bool use_start_point_special_case (const Field< int > &curve_index, const Field< int > &sort_index, const Field< float > &sort_weights)
static void node_geo_exec (GeoNodeExecParams params)
static void node_register ()

Function Documentation

◆ node_declare()

void blender::nodes::node_geo_curve_topology_points_of_curve_cc::node_declare ( NodeDeclarationBuilder & b)
static

◆ node_geo_exec()

void blender::nodes::node_geo_curve_topology_points_of_curve_cc::node_geo_exec ( GeoNodeExecParams params)
static

Definition at line 200 of file node_geo_curve_topology_points_of_curve.cc.

References params.

Referenced by node_register().

◆ node_register()

◆ use_start_point_special_case()

bool blender::nodes::node_geo_curve_topology_points_of_curve_cc::use_start_point_special_case ( const Field< int > & curve_index,
const Field< int > & sort_index,
const Field< float > & sort_weights )
static

The node is often used to retrieve the root point of the curve. If the curve indices are in order, the sort weights have no effect, and the sort index is the first point, then we can just return the curve offsets as a span directly.

Definition at line 37 of file node_geo_curve_topology_points_of_curve.cc.

References blender::fn::FieldNode::depends_on_input(), blender::fn::evaluate_constant_field(), and blender::fn::GFieldBase< NodePtr >::node().

Referenced by blender::nodes::node_geo_curve_topology_points_of_curve_cc::PointsOfCurveInput::get_varray_for_context().