Blender V4.3
blender::nodes::node_geo_curve_topology_points_of_curve_cc Namespace Reference

Classes

class  CurvePointCountInput
 
class  CurveStartPointInput
 
class  PointsOfCurveInput
 

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()

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

◆ node_geo_exec()

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

Definition at line 225 of file node_geo_curve_topology_points_of_curve.cc.

References params, and use_start_point_special_case().

Referenced by node_register().

◆ node_register()

static void blender::nodes::node_geo_curve_topology_points_of_curve_cc::node_register ( )
static

◆ use_start_point_special_case()

static 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 182 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 node_geo_exec().